/* v99: welcome screens fit + contrast (white/indigo light, slate dark; AA) */
html #cl-welcome#cl-welcome.cl{position:fixed!important;inset:0!important;height:100vh!important;height:100dvh!important;max-height:100dvh!important;box-sizing:border-box!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none!important;-ms-overflow-style:none;padding:calc(12px + env(safe-area-inset-top,0px)) calc(24px + env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) calc(24px + env(safe-area-inset-left,0px))!important}
html #cl-welcome#cl-welcome.cl::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
html #cl-welcome#cl-welcome.cl>*{flex-shrink:0}
html #cl-welcome#cl-welcome.cl .cl-art{flex:1 1 auto!important;min-height:220px!important;max-height:420px;overflow:hidden!important;margin:0 -24px!important}
html #cl-welcome#cl-welcome.cl h1{font-size:clamp(28px,8.6vw,38px)!important;margin:6px 0 16px!important}
html #cl-welcome#cl-welcome.cl #tour-wel{margin-top:6px}
@media (max-height:760px){html #cl-welcome#cl-welcome.cl .cl-art{zoom:.78;min-height:200px!important}html #cl-welcome#cl-welcome.cl .cl-pill{height:50px!important}html #cl-welcome#cl-welcome.cl h1{margin:4px 0 12px!important}}
@media (max-height:680px){html #cl-welcome#cl-welcome.cl .cl-art{zoom:.62;min-height:240px!important}html #cl-welcome#cl-welcome.cl h1{font-size:28px!important}html #cl-welcome#cl-welcome.cl .cl-logo img{width:28px;height:28px}}

/* sign-in welcome: light */
html #p13-welcome#p13-welcome{z-index:2147482000!important;background:#fff!important;background-image:none!important;color:#15172b!important;scrollbar-width:none;overflow-x:hidden!important}
html #p13-welcome#p13-welcome::-webkit-scrollbar{display:none}
html #p13-welcome#p13-welcome .p13-wel-sheet{padding-bottom:calc(40px + env(safe-area-inset-bottom,0px))!important}
html #p13-welcome#p13-welcome .p13-catalog{color:#3b3fd8!important}
html #p13-welcome#p13-welcome .p13-wel-t{color:#15172b!important}
html #p13-welcome#p13-welcome .p13-wel-t::after{content:"";display:block;width:56px;height:4px;border-radius:2px;background:#3b3fd8;margin:12px auto 0}
html #p13-welcome#p13-welcome .p13-wel-s,html #p13-welcome#p13-welcome .p13-fine,html #p13-welcome#p13-welcome .p13-or,html #p13-welcome#p13-welcome .p13-or span{color:#4b4e66!important}
html #p13-welcome#p13-welcome .p13-or::before,html #p13-welcome#p13-welcome .p13-or::after{background:#d9dae6!important}
html #p13-welcome#p13-welcome .p25-wel,html #p13-welcome#p13-welcome .p13-msg{color:#15172b!important}
html #p13-welcome#p13-welcome #p13-go-signin{background:#3b3fd8!important;color:#fff!important;border:2px solid #3b3fd8!important;box-shadow:0 8px 20px rgba(59,63,216,.25)!important}
html #p13-welcome#p13-welcome #p13-go-create{background:#fff!important;color:#3b3fd8!important;border:2px solid #3b3fd8!important;box-shadow:none!important}
html #p13-welcome#p13-welcome .hm-card{background:#f4f4fb!important;color:#15172b!important;border:1px solid #e3e3f0!important;box-shadow:none!important}
html #p13-welcome#p13-welcome .hm-card *{color:#15172b!important}
html #p13-welcome#p13-welcome .hm-card button{color:#3b3fd8!important}
html #p13-welcome#p13-welcome .p13-sso{background:#fff!important;color:#1f1f1f!important;border:1px solid #747775!important;box-shadow:none!important}
html #p13-welcome#p13-welcome .p13-guest{color:#3b3fd8!important}
html #p13-welcome#p13-welcome .p13-wel-logo{filter:none!important}
/* dark */
html[data-theme="dark"] #p13-welcome#p13-welcome{background:#0f172a!important;color:#f1f5f9!important}
html[data-theme="dark"] #p13-welcome#p13-welcome .p13-catalog,html[data-theme="dark"] #p13-welcome#p13-welcome .p13-guest,html[data-theme="dark"] #p13-welcome#p13-welcome .hm-card button{color:#a5b4fc!important}
html[data-theme="dark"] #p13-welcome#p13-welcome .p13-wel-t,html[data-theme="dark"] #p13-welcome#p13-welcome .p25-wel,html[data-theme="dark"] #p13-welcome#p13-welcome .p13-msg{color:#f1f5f9!important}
html[data-theme="dark"] #p13-welcome#p13-welcome .p13-wel-t::after{background:#818cf8}
html[data-theme="dark"] #p13-welcome#p13-welcome .p13-wel-s,html[data-theme="dark"] #p13-welcome#p13-welcome .p13-fine,html[data-theme="dark"] #p13-welcome#p13-welcome .p13-or,html[data-theme="dark"] #p13-welcome#p13-welcome .p13-or span{color:#cbd5e1!important}
html[data-theme="dark"] #p13-welcome#p13-welcome .p13-or::before,html[data-theme="dark"] #p13-welcome#p13-welcome .p13-or::after{background:#334155!important}
html[data-theme="dark"] #p13-welcome#p13-welcome #p13-go-signin{background:#4f46e5!important;border-color:#4f46e5!important;box-shadow:none!important}
html[data-theme="dark"] #p13-welcome#p13-welcome #p13-go-create{background:transparent!important;color:#c7d2fe!important;border-color:#818cf8!important}
html[data-theme="dark"] #p13-welcome#p13-welcome .hm-card{background:#1e293b!important;border-color:#334155!important;color:#f1f5f9!important}
html[data-theme="dark"] #p13-welcome#p13-welcome .hm-card *{color:#f1f5f9!important}
html[data-theme="dark"] #p13-welcome#p13-welcome .hm-card button{color:#a5b4fc!important}
html[data-theme="dark"] #p13-welcome#p13-welcome .p13-sso{background:#fff!important;color:#1f1f1f!important;border-color:#8e918f!important}
html[data-theme="dark"] #p13-welcome#p13-welcome .p13-wel-logo{filter:invert(1)!important}

/* person sheet: verse refs as tappable links */
.sc-ref{border:0;background:none;padding:6px 0;font:inherit;color:#3b3fd8;text-decoration:underline;text-underline-offset:3px;cursor:pointer;text-align:left}
html[data-theme="dark"] .sc-ref{color:#a5b4fc!important;background:none!important}

/* Read book picker: dark-mode tapped / active / selected = readable indigo, never black */
html[data-theme="dark"] .v2-book-grid button,html[data-theme="dark"] .v2-grid button,html[data-theme="dark"] .v2-books button{-webkit-tap-highlight-color:rgba(129,140,248,.25)!important}
html[data-theme="dark"] .v2-book-grid button:active,html[data-theme="dark"] .v2-grid button:active,html[data-theme="dark"] .v2-books button:active,
html[data-theme="dark"] .v2-book-grid button:focus,html[data-theme="dark"] .v2-grid button:focus,html[data-theme="dark"] .v2-books button:focus,
html[data-theme="dark"] .v2-book-grid button.on,html[data-theme="dark"] .v2-grid button.on,html[data-theme="dark"] .v2-books button.on,
html[data-theme="dark"] .v2-book-grid button[aria-selected=true],html[data-theme="dark"] .v2-book-grid button[aria-pressed=true],html[data-theme="dark"] .v2-grid button[aria-pressed=true]{background:#312e81!important;background-color:#312e81!important;color:#eef2ff!important;border:1px solid #818cf8!important;box-shadow:none!important;outline:none}
html[data-theme="dark"] .v2-book-grid button:focus-visible,html[data-theme="dark"] .v2-grid button:focus-visible{outline:2px solid #a5b4fc!important;outline-offset:2px}
html[data-theme="dark"] body .v2-chapters button.v2-ov-open,html[data-theme="dark"] body .v2-chapters button.v2-ov-open:active,html[data-theme="dark"] body .v2-chapters button.v2-ov-open:focus{background:#312e81!important;background-color:#312e81!important;color:#eef2ff!important;border:1px solid #818cf8!important}
html:not([data-theme="dark"]) .v2-ov-open{background:#eef0ff!important;color:#3b3fd8!important;border:1px solid #3b3fd8!important}
.lsf-ov .lsf-top{position:sticky!important;top:0;z-index:5;background:inherit}
