@font-face { font-family: Heebo; src: url(../fonts/heebo-hebrew.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Heebo; src: url(../fonts/heebo-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC; }
@font-face { font-family: Frank; src: url(../fonts/frank-hebrew.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

:root {
  --bg: #f4efe4; --card: #fffdf8; --ink: #1c2430; --muted: #5f6774; --line: #e3dccb;
  --navy: #16304f; --navy2: #24507f; --gold: #c9a24b; --gold-ink: #8a6a1e; --green: #23805a; --green-bg: #e4f3ea; --red: #b3412e;
  --r: 18px; --shadow: 0 1px 2px rgba(22, 48, 79, .06), 0 6px 18px rgba(22, 48, 79, .07);
  --sans: Heebo, system-ui, "Segoe UI", Arial, sans-serif; --serif: Frank, "Frank Ruehl CLM", "David", "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f141b; --card: #182029; --ink: #ebe6dc; --muted: #a3acb7; --line: #2a3440; --navy: #a9c8ee; --navy2: #6f9fd6; --gold: #d9b45d; --gold-ink: #e0bf6c; --green: #4fbf8c; --green-bg: #17302a; --red: #ec8a76; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.reading { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; top: -60px; right: 12px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 10px; }
main { max-width: 640px; margin: 0 auto; padding: 0 14px; outline: none; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.small { font-size: 12px; }
.title { font-size: 26px; margin: calc(18px + env(safe-area-inset-top)) 4px 14px; color: var(--navy); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* hero */
.hero { margin: 0 -14px 16px; padding: calc(14px + env(safe-area-inset-top)) 16px 18px; color: #fff; border-radius: 0 0 28px 28px;
  background: radial-gradient(120% 90% at 100% 0%, #2d5f94 0%, transparent 60%), linear-gradient(160deg, #16304f, #0f2440); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(201, 162, 75, .12); }
@media (min-width: 668px) { .hero { margin: 12px 0 16px; border-radius: 28px; } }
.daybar { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.daybar .date { text-align: center; }
.daybar h1 { font-size: 26px; margin: 0; font-weight: 800; letter-spacing: .2px; }
.daybar small { opacity: .8; font-size: 14px; }
.nav-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); font-size: 26px; line-height: 1; color: #fff; }
.summary { display: flex; align-items: center; gap: 14px; margin-top: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 12px 14px; position: relative; z-index: 1; }
.summary > div:nth-child(2) { flex: 1; }
.summary b { display: block; font-size: 17px; }
.summary small { opacity: .85; }
.ring { --p: 0; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(255, 255, 255, .18) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #18365a; }
.ring span { position: relative; font-weight: 800; font-size: 15px; }
.welcome { text-align: center; padding-top: calc(36px + env(safe-area-inset-top)); padding-bottom: 28px; }
.welcome img { border-radius: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.welcome h1 { margin: 14px 0 6px; font-size: 26px; }
.welcome p { margin: 0; opacity: .85; }
.onb { padding-bottom: 20px; }

/* study tile */
.tile { --c: #3d6bb3; flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); letter-spacing: -.2px; }

/* cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 10px 12px; box-shadow: var(--shadow); transition: background .2s, border-color .2s, transform .1s; }
.card.done { background: var(--green-bg); border-color: transparent; }
.card.off { opacity: .6; box-shadow: none; padding: 12px; }
.card .open { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; background: none; border: 0; padding: 2px; text-align: start; border-radius: 12px; }
.card .open:active { transform: scale(.99); }
.info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.info .h3, .card h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0; }
.portion { font-size: 17px; font-weight: 700; color: var(--ink); }
.sub { font-size: 14px; color: var(--muted); }
.card.done .portion { color: var(--green); }
.meter { display: block; height: 5px; background: var(--line); border-radius: 9px; overflow: hidden; margin-top: 6px; max-width: 180px; }
.meter i { display: block; height: 100%; background: var(--gold); border-radius: 9px; }
.card.done .meter i { background: var(--green); }

.check { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); display: inline-grid; place-items: center; padding: 0; transition: transform .12s, background .15s; }
.check svg { width: 22px; height: 22px; fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check:active { transform: scale(.9); }
.check:hover svg { stroke: var(--line); }
.check.on { background: var(--green); border-color: var(--green); }
.check.on svg { stroke: #fff; }
.check.part { border-color: var(--gold); border-style: dashed; }
.check.sm { width: 30px; height: 30px; }
.check.sm svg { width: 17px; height: 17px; }

/* backlog */
.behind { margin-top: 26px; }
.behind h2 { font-size: 20px; margin: 0 4px 2px; color: var(--navy); }
.behind > .muted { margin: 0 4px 10px; }
.bgroup { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; }
.bhead { display: flex; align-items: center; gap: 10px; }
.bhead .tile { width: 34px; height: 34px; border-radius: 10px; font-size: 10px; }
.bhead b { flex: 1; }
.pill { background: var(--gold); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 9px; font-weight: 700; }
.bgroup ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.bgroup li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.blink { background: none; border: 0; padding: 6px 0; text-align: start; flex: 1; }
.blink:hover { color: var(--navy2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 16px; font-weight: 600; color: var(--navy); text-decoration: none; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0f141b; } }
.btn.wide { width: 100%; padding: 14px; font-size: 17px; }
.onb .btn.wide { margin-top: 14px; }
.btn.tiny { padding: 4px 12px; font-size: 13px; border-radius: 999px; }
.btn.ghost { background: transparent; }
.btn.light { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn.danger { color: var(--red); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* pickers */
.pick { display: grid; gap: 8px; }
.pickrow { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; cursor: pointer; position: relative; }
.panel .pickrow { background: var(--bg); }
.pickrow input { position: absolute; opacity: 0; pointer-events: none; }
.ptext { flex: 1; }
.pickrow .box { flex: none; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; background: var(--card); }
.pickrow .box svg { width: 18px; height: 18px; fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pickrow:has(input:checked) { border-color: color-mix(in srgb, var(--navy2) 45%, var(--line)); }
.pickrow input:checked ~ .box { background: var(--navy); border-color: var(--navy); }
.pickrow input:checked ~ .box svg { stroke: #fff; }
@media (prefers-color-scheme: dark) { .pickrow input:checked ~ .box svg { stroke: #0f141b; } }
.pickrow:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.pickrow b { display: block; }
.pickrow small { color: var(--muted); display: block; font-size: 13px; }
.pickrow .note { color: var(--gold-ink); }

/* panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 12px; font-size: 17px; color: var(--navy); }
.seg { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 8px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; }
.seg button.on { background: var(--navy); color: #fff; font-weight: 700; }
@media (prefers-color-scheme: dark) { .seg button.on { color: #0f141b; } }
.promo { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 12px 4px; border-top: 1px solid var(--line); border-radius: 12px; }
.promo:first-of-type { border-top: 0; }
.promo img { border-radius: 12px; flex: none; }
.promo b { display: block; font-size: 16px; }
.promo small { color: var(--muted); font-size: 13px; }
.promo > span:nth-of-type(1) { flex: 1; }
.promo .go { color: var(--muted); font-size: 22px; }
.promo:hover b { color: var(--navy2); }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 18px 0 6px; font-size: 14px; }
.legal a { color: var(--navy2); }

/* tracking */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 6px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 28px; color: var(--navy); line-height: 1.2; font-weight: 800; }
.stat small { color: var(--muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wd { text-align: center; color: var(--muted); font-size: 12px; }
.cell { aspect-ratio: 1; border-radius: 9px; border: 0; padding: 0; font-size: 12px; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.cell.pad { background: transparent; }
.cell.none { background: transparent; border: 1px dashed var(--line); }
.cell.l0 { background: var(--bg); border: 1px solid var(--line); }
.cell.l2 { background: #e8cf8b; color: #4f3d12; }
.cell.l3 { background: var(--green); color: #fff; font-weight: 700; }
.cell.now { outline: 2px solid var(--navy); outline-offset: 1px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 12px 0 4px; }
.legend .cell { width: 14px; height: 14px; aspect-ratio: auto; border-radius: 4px; margin-inline-start: 8px; }
.bar { display: grid; grid-template-columns: 30px 8.5em 1fr 3em; align-items: center; gap: 10px; font-size: 14px; margin: 8px 0; }
.bar .tile { width: 30px; height: 30px; border-radius: 9px; font-size: 9px; }
.bar .track { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar .track i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.bar small { color: var(--muted); text-align: left; font-variant-numeric: tabular-nums; }

/* reader */
.reader { position: fixed; inset: 0; z-index: 20; background: var(--card); display: flex; flex-direction: column; }
.reader[hidden] { display: none; }
.rhead { display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; border-bottom: 1px solid var(--line); background: var(--card); }
.rtitle { flex: 1; min-width: 0; }
.rtitle small { color: var(--muted); font-size: 12px; }
.rtitle h2 { margin: 0; font-size: 17px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon { flex: none; min-width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-weight: 700; font-size: 15px; color: var(--navy); padding: 0 8px; }
.ropts { display: flex; gap: 18px; padding: 8px 16px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.ropts label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ropts input { width: 18px; height: 18px; accent-color: var(--navy); }
.rbody { flex: 1; overflow-y: auto; padding: 8px 18px 30px; outline: none; -webkit-overflow-scrolling: touch; }
.rbody > * { max-width: 720px; margin-inline: auto; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }
.rpart { padding-top: 6px; }
.rpart + .rpart { border-top: 1px dashed var(--line); margin-top: 18px; }
.rpart h3 { font-size: 15px; color: var(--gold-ink); margin: 14px 0 6px; font-weight: 700; }
.text { font-family: var(--serif); font-size: var(--fs, 21px); line-height: 1.8; }
.text p { margin: 0 0 .55em; }
.text h4 { font-family: var(--sans); font-size: .75em; color: var(--navy); margin: 1.1em 0 .4em; }
.text .vn { font-family: var(--sans); font-size: .55em; color: var(--gold-ink); font-weight: 700; margin-inline-end: .35em; vertical-align: .45em; }
.text .hn { font-family: var(--sans); font-size: .6em; color: var(--gold-ink); margin-inline-end: .2em; }
.text .pm { font-family: var(--sans); font-size: .55em; color: var(--muted); margin-inline: .3em; }
.text big { font-size: 1.25em; }
.text small { font-size: .8em; color: var(--muted); }
.verse { margin-bottom: .2em; }
.rashi { font-size: .78em; line-height: 1.65; background: var(--bg); border-radius: 12px; padding: .5em .8em; margin: .2em 0 .9em; color: var(--ink); }
.rashi p { margin: 0 0 .35em; }
.rashi .rl { font-family: var(--sans); font-size: .7em; font-weight: 800; color: var(--gold-ink); display: block; }
.chumash .chap { text-align: center; }
.text .note { font-family: var(--sans); font-size: .7em; color: var(--muted); }
.err { font-family: var(--sans); color: var(--red); font-size: 15px; }
.pdone { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; color: var(--navy); }
.pdone.on { background: var(--green-bg); color: var(--green); border-color: transparent; }
.rfoot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.rfoot .btn { max-width: 640px; margin: 0 auto; display: flex; }

/* nav */
.nav { position: fixed; inset: auto 0 0 0; z-index: 10; display: flex; justify-content: center; gap: 4px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.nav[hidden] { display: none; }
.tab { flex: 1; max-width: 160px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); padding: 6px 4px; border-radius: 14px; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--navy); font-weight: 700; background: color-mix(in srgb, var(--navy2) 10%, transparent); }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 30; width: max-content; max-width: min(92vw, 520px); text-align: center; line-height: 1.4; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* icons and arrows: drawn for LTR, mirrored in RTL so "back" always points to where you came from */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; display: block; }
[dir=rtl] .ic.dir { transform: scaleX(-1); }
.nav-arrow { display: grid; place-items: center; }
.icon .ic { margin: 0 auto; }
.promo .go .ic, .blink .go .ic { width: 18px; height: 18px; }
.blink { display: flex; align-items: center; gap: 4px; }
.blink .go { margin-inline-start: auto; color: var(--muted); }
.promo .go { display: grid; place-items: center; }

/* halacha marks: a light (ghost) check before each halacha */
.hal { position: relative; }
.hcheck { width: 1.25em; height: 1.25em; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--muted) 55%, transparent); background: transparent;
  display: inline-grid; place-items: center; padding: 0; margin-inline-start: .25em; vertical-align: -.2em; opacity: .55; transition: opacity .15s, background .15s; }
.hcheck svg { width: 70%; height: 70%; fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hcheck:hover, .hcheck:focus-visible { opacity: 1; }
.hcheck.on { opacity: 1; background: var(--green); border: 1.5px solid var(--green); }
.hcheck.on svg { stroke: #fff; }
.hal.hdone { color: color-mix(in srgb, var(--ink) 62%, transparent); }

/* install banner */
.install { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); border-radius: var(--r); padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow); }
.install img { border-radius: 12px; flex: none; }
.install > div:nth-of-type(1) { flex: 1; }
.install b { display: block; }
.install small { color: var(--muted); font-size: 13px; }
.ibtns { display: flex; flex-direction: column; gap: 6px; }

/* onboarding language switch */
.onb-lang { position: relative; z-index: 1; max-width: 220px; margin: 0 auto 18px; }
.onb-lang .seg { background: rgba(255, 255, 255, .12); }
.onb-lang .seg button { color: #fff; }
.onb-lang .seg button.on { background: #fff; color: #16304f; }

/* calendar in Hebrew dates */
.months { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.cell { font-size: 11px; }
.cell.m1 { box-shadow: inset 0 0 0 2px var(--gold); }
.tab span { display: block; }

/* walk mode: one paragraph at a time, big text, big buttons */
.icon.on { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (prefers-color-scheme: dark) { .icon.on { color: #0f141b; } }
.reader.walk .text { font-size: calc(var(--fs, 21px) + 5px); line-height: 1.9; font-weight: 500; }
.reader.walk .text p { opacity: .28; transition: opacity .2s; border-radius: 10px; }
.reader.walk .text p.cur { opacity: 1; background: color-mix(in srgb, var(--gold) 13%, transparent); box-shadow: 0 0 0 .35em color-mix(in srgb, var(--gold) 13%, transparent); }
.reader.walk .rashi { background: transparent; }
.reader.walk .rbody { padding-bottom: 45vh; padding-top: 30vh; cursor: pointer; }
.walkbar { display: flex; gap: 8px; margin: 0 auto 8px; max-width: 640px; }
.walkbar[hidden] { display: none; }
.wb { flex: 1; height: 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 17px; }
.wb .ic { width: 28px; height: 28px; }
.wb.speak { flex: 1.6; }
.wb.speak.on { background: var(--gold); border-color: var(--gold); color: #fff; }

/* personal Tehillim */
.card.setup { border-style: dashed; }
.card.setup .go { color: var(--muted); display: grid; place-items: center; }
.people { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.people li { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 12px; padding: 8px 10px; }
.pname { flex: 1; min-width: 0; }
.pname b { display: block; }
.pname small { color: var(--muted); font-size: 13px; }
.pch { font-weight: 800; color: var(--navy); white-space: nowrap; }
.pform { display: grid; gap: 12px; background: var(--bg); border-radius: 14px; padding: 12px; }
.fl { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pform input, .pform select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-height: 44px; }
.hsel { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hsel select { flex: 1; min-width: 0; }
.hsel #pd { flex: .8; }
.hsel #py { flex: 2; min-width: 9.5em; }
.civil summary { cursor: pointer; color: var(--navy2); font-size: 14px; }
.civil .hsel { margin-top: 8px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.chk input { min-height: 0; width: 18px; height: 18px; }
.ropts span { font-weight: 600; }
.comm .rl { color: var(--navy2); }

/* share */
.summary .share { flex: none; }
.icon.light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn.wa .ic { width: 20px; height: 20px; }
#voice .hsel { margin-bottom: 8px; }
#voice select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-height: 44px; }
#voice #vsel { flex: 1 1 100%; }
#voice #vrate { flex: 1; }
.daybar .date .btn { margin-top: 6px; }

#daystart .seg button { font-size: 14px; padding: 9px 4px; }
.locrow { margin: 10px 0 6px; }
.locrow select { flex: 1; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-height: 44px; }

/* new version bar */
.update { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); padding: 8px 8px 8px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); white-space: nowrap; }
[dir=rtl] .update { padding: 8px 16px 8px 8px; }
.update .btn.primary { background: var(--gold); border-color: var(--gold); color: #1c2430; }

/* halacha: check at the end, long press to mark, flash on the next one */
.text .hal { scroll-margin-top: 14px; }
@media (pointer: coarse) { .text .hal { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } }
.hcheck { width: 1.45em; height: 1.45em; }
@keyframes halflash { from { background: color-mix(in srgb, var(--gold) 28%, transparent); } to { background: transparent; } }
.text .hal.flash { animation: halflash 1.4s ease-out; border-radius: 8px; }

/* reading progress */
.rprog { height: 4px; background: var(--line); flex: none; }
.rprog i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s; }
[dir=rtl] .rprog i { margin-inline-start: 0; }
.rprog.full i { background: var(--green); }

/* reader header: five buttons, keep room for the title */
.rhead { gap: 4px; }
.rhead .icon { min-width: 38px; height: 38px; padding: 0 6px; font-size: 14px; border-radius: 11px; }
.rhead .icon .ic { width: 20px; height: 20px; }
.rtitle h2 { font-size: 16px; }

/* Google sign-in */
.btn.signin { gap: 10px; }
.gic { width: 20px; height: 20px; flex: none; }
.onb-signin { margin-top: 16px; position: relative; z-index: 1; font-size: 14px; padding: 8px 14px; }
.onb-signin .gic { background: #fff; border-radius: 50%; padding: 2px; width: 22px; height: 22px; }
