@font-face{font-family:HalleluUI;src:url('/assets/fonts/NotoSansHebrew.ttf') format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:HalleluPrayer;src:url('/assets/fonts/FrankRuhlLibre.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{--ink:#142239;--muted:#69788e;--blue:#0787ff;--line:#dee7f2;--surface:rgba(255,255,255,.88);--radius:26px;--prayer-size:30px;font-family:HalleluUI,-apple-system,BlinkMacSystemFont,sans-serif;color:var(--ink);background:#f1f7ff;color-scheme:light}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 100% 0,#dcecff 0,transparent 50%),radial-gradient(ellipse at 0 65%,#e4f5f3 0,transparent 45%),radial-gradient(ellipse at 85% 100%,#efebff 0,transparent 50%);background-attachment:fixed}button,input,textarea,summary{font:inherit}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.58}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #1675cc;outline-offset:4px}h1,h2,p{margin:0}h1{font-size:clamp(28px,5vw,36px);line-height:1.3;letter-spacing:-.8px}h2{font-size:23px;line-height:1.4;letter-spacing:-.4px}p{line-height:1.65}img{display:block;object-fit:contain}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.shell{max-width:640px;margin:auto;padding:18px 18px max(24px,env(safe-area-inset-bottom))}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px;min-height:52px}.brand{display:flex;align-items:center;gap:9px;font-weight:800;font-size:20px;color:var(--ink)}.brand img{border-radius:12px}.surface{background:var(--surface);border:1px solid rgba(255,255,255,.9);border-radius:var(--radius);box-shadow:0 7px 30px #30598707,0 0 0 1px #25375a05}.button{border:0;border-radius:19px;min-height:54px;padding:13px 20px;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:700;font-size:17px;line-height:1.45;color:var(--ink);text-align:center}.primary{background:linear-gradient(115deg,#078fff,#217bff);color:#fff;box-shadow:0 7px 20px #0b88ff20}.primary:hover:not(:disabled){background:#0878e9}.quiet{background:#ffffff90;border:1px solid #cddcec;color:var(--blue)}.soft{background:linear-gradient(105deg,#dfe9ff,#dbf2fa);color:var(--blue)}.compact{min-height:44px;padding:9px 14px;border-radius:24px;font-size:15px}.text-link{padding:4px 0;border:0;background:none;color:#0073e5;font-weight:650;font-size:15px}.text-link:hover{text-decoration:underline}.small{font-size:13px}.muted{color:var(--muted);font-weight:400}.group-summary{padding:25px 23px 22px;background:linear-gradient(130deg,#ffffffed,#f9fcffee 62%,#edf0ffba)}.summary-top{display:flex;align-items:center;gap:18px;margin-bottom:23px}.summary-copy{flex:1;min-width:0}.group-summary h1{overflow-wrap:anywhere}.book-art{border-radius:27px;flex-shrink:0}.dedication{margin-top:9px;color:#5f6b80;font-size:17px;white-space:pre-wrap;overflow-wrap:anywhere}.progress-caption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;font-size:14px;margin-bottom:10px}.progress-caption strong{font-weight:700}progress{width:100%;height:8px;border:0;appearance:none;border-radius:10px;overflow:hidden;background:#e1eafa;display:block}progress::-webkit-progress-bar{background:#e1eafa}progress::-webkit-progress-value{background:linear-gradient(90deg,#36b6ff,#087dff);border-radius:10px}progress::-moz-progress-bar{background:#087dff;border-radius:10px}.group-status{margin:13px 0 17px;color:var(--muted);font-size:14px}.group-summary .button{width:100%}.chapters-section{margin-top:30px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.legend{list-style:none;display:flex;gap:23px;margin:0 0 16px;padding:0;color:#596b84;font-size:14px}.legend li{display:flex;align-items:center;gap:7px}.dot{width:13px;height:13px;border-radius:50%;display:block;border:1px solid #c7d5e5}.free{background:#edf2f8}.claimed{background:#a5d3ff;border-color:#82c2fb}.completed{background:#adedd7;border-color:#8bdabf}.chapter-panel{padding:17px}.chapter-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.chapter{position:relative;min-height:52px;border:1px solid #e0e8f2;border-radius:13px;background:#f0f5fb;color:var(--ink);font-size:18px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:2px}.chapter:hover:not(:disabled){background:#deedff;border-color:#91bfff}.chapter.claimed{background:#e0edff;color:#3c729d;border-color:#c7e0fc}.chapter.completed{background:#ddf5ea;color:#237557;border-color:#c0eada}.chapter.own{border:2px solid var(--blue);color:#087ce8;background:#e1efff}.chapter:disabled{opacity:1}.chapter svg{width:12px;height:12px}.expand{display:block;width:100%;margin-top:15px;min-height:38px}.app-links{margin-top:20px;text-align:center}.app-links .button{width:100%}.app-links p{font-size:13px;color:var(--muted);margin-top:12px}.privacy{font-size:12px;color:#65748b;line-height:1.75;margin-top:21px}.notice{padding:13px 16px;border-radius:17px;background:#e4f2ff;border:1px solid #bbdafa;color:#255986;margin-bottom:18px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.notice.error{background:#fff1ed;border-color:#f0c5b9;color:#914633}.notice.success{background:#e7f7ef;border-color:#bfe6d3;color:#236848}.notice.warning{background:#fff7e4;border-color:#ecdbaf;color:#796032}.notice button{display:inline-block;margin-inline-start:10px;color:inherit;text-decoration:underline;border:0;background:transparent;font-weight:700}.loading,.empty,.thanks{text-align:center;padding:35px 25px}.loading img,.thanks img{margin:0 auto 20px;border-radius:25px}.loading p,.empty p,.thanks p{margin:16px 0;color:var(--muted)}.empty .button,.thanks .button{width:100%;margin-top:14px}.empty .text-link{display:inline-block;margin-top:18px}.intro{padding:4px 12px 29px;text-align:center}.intro-icon{border-radius:28px;margin:0 auto 20px}.intro h1{font-size:39px}.intro p{color:var(--muted);max-width:400px;margin:16px auto 0;font-size:16px}.form-card{padding:24px}.form-card h2{margin-bottom:23px}.form-card label{display:block;font-weight:650;font-size:15px;margin:18px 0 8px}input[type=text],input:not([type]),textarea{width:100%;border:1px solid #cfdbeb;border-radius:13px;background:#fff;padding:12px 14px;font-size:16px;color:var(--ink)}textarea{resize:vertical;min-height:90px}.book-note{display:flex;gap:12px;align-items:center;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:22px}.book-note img{border-radius:12px}.book-note span{display:block;color:var(--muted);font-size:13px;margin-top:4px}.form-card .button{width:100%;margin-top:20px}.form-card .privacy{margin-top:14px}#recent{margin-top:28px}.recent-list{list-style:none;padding:5px 20px;margin:14px 0}.recent-list li+li{border-top:1px solid var(--line)}.recent-list a{display:block;padding:16px 0;font-weight:650}.reader-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:16px}.font-options{position:relative;z-index:2;text-align:center}.font-options summary{list-style:none;border:1px solid #cddcec;border-radius:22px;min-width:50px;background:#fff9;padding:9px 14px;font-size:19px;font-weight:600;cursor:pointer}.font-options summary::-webkit-details-marker{display:none}.font-options label,.font-options input{display:none}.font-options[open]{padding:0 0 12px;background:#fff;border:1px solid #cfdbeb;border-radius:20px;box-shadow:0 6px 20px #23374e0c}.font-options[open] summary{border:0}.font-options[open] label{display:block;font-size:13px;padding:5px 15px}.font-options[open] input{display:block;width:160px;margin:8px 16px;accent-color:var(--blue)}.lease-status{text-align:center;padding:12px 15px;margin-bottom:16px;font-size:14px;color:#345a83}.lease-status small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.lease-status.expired{background:#fff3e8;color:#875021}.reading-page{padding:26px 22px 20px}.reading-page h1{text-align:center;padding-bottom:22px;border-bottom:1px solid var(--line);font-size:29px}.verse{position:relative;display:grid;grid-template-columns:18px 1fr;gap:10px;margin:23px 0}.verse-label{font-size:13px;color:#7b8799;padding-top:10px}.verse-text{font-family:HalleluPrayer,serif;font-size:var(--prayer-size);line-height:1.7;font-weight:400;overflow-wrap:anywhere}.reading-actions{margin-top:18px;display:grid;gap:11px}.reading-actions p{text-align:center;font-size:12px;color:var(--muted)}footer{text-align:center;color:#7c8da2;font-size:12px;padding:30px 0 4px}.skip-link{position:absolute;top:-70px;background:#fff;padding:15px;z-index:10}.skip-link:focus{top:0}dialog{border:1px solid #cfdbeb;border-radius:25px;width:min(460px,calc(100% - 32px));padding:25px;color:var(--ink);box-shadow:0 20px 60px #11224433}dialog::backdrop{background:#24395466;backdrop-filter:blur(4px)}dialog p{margin:14px 0;color:var(--muted)}dialog input{font-size:13px!important}dialog .button{margin-top:20px;width:100%}
@media(min-width:760px){.shell{padding-top:30px}.topbar{margin-bottom:30px}.group-summary{padding:30px}.book-art{width:122px;height:122px}.chapter-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.reading-page{padding:34px 42px}.intro{padding-top:16px}.chapter{min-height:55px}}
@media(max-width:370px){.shell{padding-inline:12px}.group-summary{padding:20px 17px}.book-art{width:78px;height:78px}.summary-top{gap:10px}.chapter-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.chapter-panel{padding:13px}.legend{gap:17px}.reading-page{padding-inline:15px}.brand{font-size:18px}.intro h1{font-size:34px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background .16s ease,box-shadow .16s ease}#create,#group,#reader,#thanks{animation:appear .22s ease-out}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}}
.owner-options{border-top:1px solid var(--line);margin-top:24px;padding-top:16px;color:var(--muted);font-size:13px}.owner-options summary{cursor:pointer;font-weight:650}.owner-options p{margin:12px 0}.danger{color:#b64236}.destructive{background:#b83d32;color:#fff}.chapter-check{font-size:10px;position:absolute;inset-inline-end:5px;bottom:3px}
.book-history{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:#617696;padding-bottom:13px;margin-bottom:14px;border-bottom:1px solid var(--line)}.book-history strong{font-weight:650;color:#42699a}.reader-book-number{text-align:center;font-size:13px;color:var(--muted);margin-top:12px}

/* Presence refreshes never replace chapter content or reset the reading position. */
.reading-activity { color: var(--muted, #64748b); font-size: .9rem; margin: 10px 0 14px; }
.reading-activity::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #1684f8; margin-inline-end: 7px; }

.verification-dialog{max-width:420px;width:calc(100% - 32px);padding:24px}.verification-dialog h2{font-size:22px}.verification-widget{min-height:65px;width:100%}
