:root {
  --bg: #fbf8f2;
  --card: #ffffff;
  --ink: #2a2522;
  --ink2: #6f655d;
  --ink3: #a2978d;
  --line: #ebe3d6;
  --accent: #7a1f2b;
  --accent-ink: #ffffff;
  --gold: #b8873a;
  --chip: #f3ece0;
  --sel: rgba(184, 135, 58, .18);
  --hl-y: rgba(250, 214, 92, .45);
  --hl-g: rgba(126, 200, 140, .40);
  --hl-b: rgba(120, 170, 235, .38);
  --hl-r: rgba(240, 130, 140, .38);
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 16px rgba(60, 40, 20, .06);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --fs: 19px;
  --lh: 1.85;
  --tabh: 58px;
  --top: env(safe-area-inset-top, 0px);
  --bot: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-theme="sepia"] {
  --bg: #f1e7d0; --card: #f8f0dc; --ink: #3b2f22; --ink2: #6e5d48; --ink3: #9c8a72;
  --line: #ddcfb2; --chip: #e9dcbf;
}
:root[data-theme="dark"] {
  --bg: #15130f; --card: #1f1c17; --ink: #e6ddcf; --ink2: #ab9f90; --ink3: #776d61;
  --line: #2f2b24; --accent: #d26a75; --accent-ink: #1a1012; --gold: #d8a85a; --chip: #29251f;
  --sel: rgba(216, 168, 90, .2);
  --hl-y: rgba(220, 180, 60, .32); --hl-g: rgba(90, 170, 110, .32);
  --hl-b: rgba(90, 140, 210, .34); --hl-r: rgba(210, 90, 100, .34);
  --shadow: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #15130f; --card: #1f1c17; --ink: #e6ddcf; --ink2: #ab9f90; --ink3: #776d61;
    --line: #2f2b24; --accent: #d26a75; --accent-ink: #1a1012; --gold: #d8a85a; --chip: #29251f;
    --sel: rgba(216, 168, 90, .2);
    --hl-y: rgba(220, 180, 60, .32); --hl-g: rgba(90, 170, 110, .32);
    --hl-b: rgba(90, 140, 210, .34); --hl-r: rgba(210, 90, 100, .34);
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.5; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

#view { min-height: 100vh; padding-bottom: calc(var(--tabh) + var(--bot) + 16px); }
body.reading #view { padding-bottom: calc(90px + var(--bot)); }

/* ---------- 底部标签栏 ---------- */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; height: calc(var(--tabh) + var(--bot)); padding-bottom: var(--bot);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
#tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink3); font-size: 11px; }
#tabbar a.on { color: var(--accent); }
#tabbar a.on svg { stroke-width: 2.2; }
body.reading #tabbar { display: none; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 4px;
  padding: calc(var(--top) + 6px) 8px 6px;
  min-height: calc(var(--top) + 52px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, transform .25s;
}
.top.lined { border-bottom-color: var(--line); }
.top h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .ib { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); flex: none; }
.top .ib:active { background: var(--chip); }
.top .ib.on { color: var(--accent); }
.top .spacer { width: 40px; flex: none; }
body.reading.immersive .top { transform: translateY(-100%); }

.wrap { padding: 0 16px; max-width: 720px; margin: 0 auto; }
.h-big { font-family: var(--serif); font-size: 28px; font-weight: 700; margin: 6px 0 2px; letter-spacing: .02em; }
.sub { color: var(--ink2); font-size: 13px; }
.sec-t { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; font-size: 13px; color: var(--ink2); font-weight: 600; letter-spacing: .06em; }
.sec-t a, .sec-t button { color: var(--accent); font-weight: 500; letter-spacing: 0; }

.card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- 首页 ---------- */
.home-head { padding: calc(var(--top) + 18px) 16px 4px; max-width: 720px; margin: 0 auto; }
.lit { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); }
.lit i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.daily { padding: 18px 18px 16px; margin-top: 14px; position: relative; overflow: hidden; }
.daily::before { content: "“"; position: absolute; right: 10px; top: -18px; font: 700 96px/1 var(--serif); color: var(--gold); opacity: .18; }
.daily .t { font-family: var(--serif); font-size: 18px; line-height: 1.75; }
.daily .r { margin-top: 10px; font-size: 13px; color: var(--accent); }
.cont { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 12px; }
.cont .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 17px; flex: none; }
.cont .x { flex: 1; min-width: 0; }
.cont .x b { display: block; font-size: 15px; }
.cont .x span { font-size: 12px; color: var(--ink2); }

.seg { display: flex; background: var(--chip); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; padding: 7px 0; border-radius: 9px; font-size: 14px; color: var(--ink2); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.grp-t { margin: 18px 2px 8px; font-size: 12px; color: var(--ink3); letter-spacing: .1em; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.book { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px 8px; text-align: center; }
.book:active { background: var(--chip); }
.book b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.book span { display: block; font-size: 11px; color: var(--ink2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }

/* ---------- 章节格 ---------- */
.chaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.chap { aspect-ratio: 1; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-variant-numeric: tabular-nums; }
.chap.wide { aspect-ratio: auto; padding: 12px 4px; font-size: 13px; grid-column: span 2; }
.chap.last { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chap:active { background: var(--chip); }
.intro-btn { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; margin: 4px 0 16px; }

/* ---------- 阅读 ---------- */
.reader { max-width: 720px; margin: 0 auto; padding: 8px 20px 24px; font-family: var(--serif); font-size: var(--fs); line-height: var(--lh); }
.reader .ch-t { text-align: center; margin: 18px 0 8px; }
.reader .ch-t b { display: block; font-size: 1.45em; letter-spacing: .08em; }
.reader .ch-t span { font-family: var(--sans); font-size: 12px; color: var(--ink3); letter-spacing: .1em; }
.reader h3 { font-size: 1.05em; text-align: center; color: var(--accent); margin: 1.6em 0 .6em; font-weight: 700; }
.reader h4 { font-family: var(--sans); font-size: .82em; color: var(--gold); margin: 1.4em 0 .3em; font-weight: 600; letter-spacing: .04em; }
.reader p.para { text-indent: 2em; margin: .5em 0; }
.v { display: block; padding: 3px 6px; margin: 0 -6px; border-radius: 6px; transition: background .2s; }
.v .n { font-family: var(--sans); font-size: .58em; color: var(--accent); font-weight: 600; vertical-align: .45em; margin-right: .3em; opacity: .85; }
.v.sel { background: var(--sel); }
.v.speak { background: var(--sel); box-shadow: inset 3px 0 0 var(--gold); }
.v.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: var(--sel); } 100% { background: transparent; } }
.v[data-hl="y"] .tx { background: var(--hl-y); }
.v[data-hl="g"] .tx { background: var(--hl-g); }
.v[data-hl="b"] .tx { background: var(--hl-b); }
.v[data-hl="r"] .tx { background: var(--hl-r); }
.v .tx { border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.v .bm { display: inline-block; width: .6em; height: .8em; margin-left: .25em; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); vertical-align: -.05em; }
.v .nt { font-family: var(--sans); font-size: .62em; color: var(--gold); margin-left: .2em; }
.v .alt { display: block; font-size: .88em; color: var(--ink2); margin: .2em 0 .5em; padding-left: .7em; border-left: 2px solid var(--line); }
.v .alt em { font-style: normal; font-family: var(--sans); font-size: .7em; color: var(--ink3); margin-right: .4em; }
sup.an { font-family: var(--sans); font-size: .62em; color: var(--gold); padding: 0 .25em; cursor: pointer; }
.notes { margin-top: 2em; border-top: 1px solid var(--line); padding-top: 1em; font-family: var(--sans); font-size: 14px; line-height: 1.75; color: var(--ink2); }
.notes summary { color: var(--ink); font-weight: 600; cursor: pointer; padding: 6px 0; }
.notes ol { padding-left: 1.6em; margin: .5em 0; }
.notes li { margin: .6em 0; }
.notes li.flash { animation: flash 1.6s ease-out; border-radius: 6px; }
.pager { display: flex; gap: 10px; margin: 2.2em 0 0; font-family: var(--sans); }
.pager a { flex: 1; text-align: center; padding: 13px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.pager a.dis { visibility: hidden; }
.source { text-align: center; font-family: var(--sans); font-size: 11px; color: var(--ink3); margin-top: 18px; }

/* 朗读条 */
.player {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--bot)); z-index: 15;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.15);
  font-size: 13px; max-width: 560px; margin: 0 auto;
}
.player .lab { flex: 1; min-width: 0; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.player button.main { background: var(--accent); color: var(--accent-ink); }
.player button.main svg { fill: currentColor; stroke: none; }

.selbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--bot)); z-index: 16;
  display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 24px rgba(0,0,0,.15);
  max-width: 560px; margin: 0 auto; animation: up .2s ease-out;
}
.selbar .hls button { width: 32px; height: 32px; }
.selbar .acts { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.selbar .acts button { font-size: 11px; }
body.selecting #view { padding-bottom: calc(200px + var(--bot)); }

/* 阅读页底部浮动翻页（无朗读时） */
.fab-nav { position: fixed; bottom: calc(14px + var(--bot)); left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 14px; pointer-events: none; z-index: 12; transition: opacity .25s; }
.fab-nav a { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink2); }
.fab-nav a.dis { visibility: hidden; }
body.immersive .fab-nav { opacity: 0; pointer-events: none; }
body.immersive .fab-nav a { pointer-events: none; }

/* ---------- 列表 ---------- */
.list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); min-height: 50px; }
.row:last-child { border-bottom: 0; }
.row:active { background: var(--chip); }
.row .x { flex: 1; min-width: 0; }
.row .x b { display: block; font-weight: 500; font-size: 15px; }
.row .x span { display: block; font-size: 13px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .chev { color: var(--ink3); width: 18px; height: 18px; flex: none; }
.row .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.row .val { color: var(--ink2); font-size: 14px; }
.empty { text-align: center; color: var(--ink3); padding: 40px 16px; font-size: 14px; }

/* ---------- 搜索 ---------- */
.sbox { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 44px; }
.sbox svg { color: var(--ink3); width: 18px; height: 18px; flex: none; }
.sbox input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; height: 100%; }
.sbox button { color: var(--ink3); font-size: 18px; width: 28px; }
.sbox input::-webkit-search-cancel-button, .sbox input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chips button { padding: 5px 12px; border-radius: 99px; background: var(--chip); font-size: 13px; color: var(--ink2); }
.chips button.on { background: var(--accent); color: var(--accent-ink); }
.hit { padding: 12px 16px; border-bottom: 1px solid var(--line); display: block; }
.hit:last-child { border-bottom: 0; }
.hit:active { background: var(--chip); }
.hit .r { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.hit .t { font-family: var(--serif); font-size: 16px; line-height: 1.65; }
mark { background: var(--hl-y); color: inherit; border-radius: 3px; padding: 0 1px; }
.hint { font-size: 13px; color: var(--ink2); margin: 12px 2px; line-height: 1.7; }
.more { display: block; width: 100%; padding: 14px; color: var(--accent); font-size: 14px; }

/* ---------- 经文 ---------- */
.prayer { max-width: 720px; margin: 0 auto; padding: 8px 22px 30px; font-family: var(--serif); font-size: var(--fs); line-height: var(--lh); }
.prayer .pt { text-align: center; font-size: 1.4em; font-weight: 700; margin: 18px 0 18px; letter-spacing: .08em; }
.prayer p { margin: .55em 0; }
.prayer p.hd { font-family: var(--sans); font-size: .8em; font-weight: 600; color: var(--gold); margin-top: 1.5em; letter-spacing: .05em; }
.prayer p.rb { font-family: var(--sans); font-size: .76em; color: var(--ink3); }

.prayer p.speak-l { background: var(--sel); border-radius: 6px; }

/* ---------- 经文页入口卡片 ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.tile { display: flex; flex-direction: column; gap: 3px; padding: 14px; min-height: 104px; }
.tile small { font-size: 11px; color: var(--ink3); letter-spacing: .04em; }
.tile b { font-family: var(--serif); font-size: 18px; color: var(--accent); line-height: 1.35; }
.tile > span { font-size: 12px; color: var(--ink2); margin-top: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .lnk { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 每日礼赞 ---------- */
.datebar { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.datebar > a { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink2); }
.datebar > a.dis { visibility: hidden; }
.datebar label { flex: 1; min-width: 0; text-align: center; position: relative; cursor: pointer; }
.datebar label b { display: block; font-size: 15px; }
.datebar label span { display: block; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.datebar label i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; border: 1px solid rgba(0,0,0,.15); vertical-align: 1px; }
.datebar input[type=date] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.hours { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.hours::-webkit-scrollbar { display: none; }
.hours a { flex: none; padding: 7px 14px; border-radius: 99px; background: var(--chip); font-size: 14px; color: var(--ink2); }
.hours a.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.office { padding-top: 4px; }
.office p.sub-t { text-align: center; font-family: var(--sans); font-size: 13px; color: var(--ink2); margin: 10px 0 6px; }
.office p.ref { margin: .2em 0 .5em; }
.office p.ref a { font-family: var(--sans); font-size: .78em; color: var(--accent); font-weight: 600; }
.office p.ref a span { font-weight: 400; color: var(--ink3); margin-left: .3em; }
.office b.lb { font-family: var(--sans); font-size: .7em; color: var(--accent); margin-right: .4em; font-weight: 600; }
.office .mk { color: var(--ink3); font-size: .8em; margin: 0 .15em; }

/* ---------- 读经计划 ---------- */
.ck { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; }
.ck svg { width: 16px; height: 16px; stroke-width: 2.6; }
.ck.on { background: #3f8a4f; border-color: #3f8a4f; color: #fff; }
.ck.half { border-color: #3f8a4f; background: linear-gradient(90deg, rgba(63,138,79,.35) 50%, transparent 50%); }

/* ---------- 同步码 / 统计 ---------- */
.code { font: 600 28px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--accent); margin: 6px 0 4px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 12px; }
.bars div { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bars i { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; opacity: .85; }
.bars div:last-child i { background: var(--gold); opacity: 1; }

/* ---------- 底部弹层 ---------- */
#sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 40; animation: fade .2s; }
#sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: 82vh; overflow: auto; overscroll-behavior: contain;
  background: var(--card); border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(16px + var(--bot)); animation: up .24s cubic-bezier(.2,.8,.2,1);
  max-width: 720px; margin: 0 auto;
}
#sheet::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sh-t { font-weight: 600; font-size: 16px; margin: 4px 2px 12px; display: flex; justify-content: space-between; align-items: baseline; }
.sh-t small { font-weight: 400; color: var(--ink3); font-size: 12px; }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.acts button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0 10px; border-radius: 12px; background: var(--chip); font-size: 12px; color: var(--ink2); }
.acts button svg { color: var(--ink); }
.acts button.on svg { color: var(--accent); fill: var(--accent); }
.hls { display: flex; gap: 14px; justify-content: center; margin: 16px 0 6px; }
.hls button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; }
.hls button.on { border-color: var(--ink); }
.hls .x { background: var(--chip); display: grid; place-items: center; color: var(--ink2); font-size: 16px; }
.preview { font-family: var(--serif); font-size: 15px; color: var(--ink2); line-height: 1.65; margin: 0 2px 14px; max-height: 6.6em; overflow: hidden; }
.note-box { width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); resize: vertical; outline: 0; font-size: 15px; line-height: 1.6; }
.btn { display: block; width: 100%; padding: 13px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; text-align: center; }
.btn.ghost { background: var(--chip); color: var(--ink); font-weight: 500; }
.btns { display: flex; gap: 10px; margin-top: 12px; }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--line); gap: 12px; }
.set-row:last-child { border-bottom: 0; }
.set-row > span { font-size: 15px; flex: none; }
.set-row .seg { flex: 1; max-width: 240px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 40px; height: 36px; border-radius: 10px; background: var(--chip); font-size: 16px; }
.stepper output { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink2); font-size: 14px; }
.picker-books { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 8px; }
.picker-books button { padding: 8px 0; border-radius: 9px; background: var(--chip); font-family: var(--serif); font-size: 15px; }
.picker-books button.on { background: var(--accent); color: var(--accent-ink); }
.note-pop { font-size: 15px; line-height: 1.8; color: var(--ink); white-space: pre-wrap; }

#toast { position: fixed; left: 50%; bottom: calc(90px + var(--bot)); transform: translateX(-50%); z-index: 60; background: rgba(30,26,22,.92); color: #fff; padding: 9px 16px; border-radius: 99px; font-size: 14px; max-width: 86vw; text-align: center; animation: fade .2s; }

.progress { height: 6px; background: var(--chip); border-radius: 3px; overflow: hidden; margin: 10px 0 4px; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }

.spin { width: 28px; height: 28px; margin: 60px auto; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

@media (min-width: 720px) {
  .reader, .prayer { padding-left: 32px; padding-right: 32px; }
}
