/* Measured high-contrast reading surfaces. Decorative borders are not text. */
:root,[data-theme]{--text:#f8fafc;--text-primary:#f8fafc;--text-muted:#cbd5e1;--text-faint:#cbd5e1;--accent-carolina:#7dd3fc;--accent-gold:#fbbf24;--research-width:380px;color-scheme:dark}
html{scroll-padding-top:170px}body{background:#040609;color:#f8fafc}*,*::before,*::after{box-sizing:border-box}
button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #fbbf24!important;outline-offset:3px}
a{color:#7dd3fc}input,textarea,select{background:#0a101d!important;color:#f8fafc!important;border:1px solid #64748b!important}input::placeholder,textarea::placeholder{color:#cbd5e1;opacity:1}
.app-header{background:#0a101d!important;border-color:rgba(212,175,55,.25);position:relative;padding:12px 22px}
.header-inner{display:flex!important;flex-wrap:wrap!important;gap:12px!important;max-width:1720px;min-width:0}
.brand-group{background:#f8fafc;border-radius:8px;padding:5px 9px;flex-shrink:0}
.header-nav-center,.header-hyperlinks,.header-actions{display:flex!important;flex-wrap:wrap!important;min-width:0;gap:8px}
.header-nav-center{flex:1 1 auto}.header-actions{margin-left:auto!important}
.ws-tab-btn,.nav-hyperlink,.header-actions .btn,.header-actions button,.header-actions select{color:#f8fafc!important;background:#0f172a!important;min-height:40px}
.ws-tab-btn.active,.nav-hyperlink.active,.res-tab-btn.active,.trans-btn.active{background:#fbbf24!important;color:#040609!important;border-color:#fbbf24!important;box-shadow:none!important}
.nav-badge{color:#f8fafc!important;background:#1e293b!important}.nav-hyperlink:hover{background:#1e293b!important}
.desk-toolbar{position:relative!important;top:auto!important;height:auto!important;flex-wrap:wrap!important}
.desk-workspace,.desk-workspace.lexicon-active{grid-template-columns:minmax(0,1fr) minmax(300px,var(--research-width));align-items:start}
.desk-workspace.fullwidth{grid-template-columns:minmax(0,1fr)}.scripture-stage{min-width:0}
.passage-resources-panel{min-width:0;top:16px;max-height:calc(100dvh - 32px)}
.res-filter-tabs,.lex-tabs-bar{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:6px}
.res-tab-btn,.lex-tab-btn{white-space:normal!important;min-height:36px;height:auto!important;color:#f8fafc;background:#0a101d}
.res-title,.res-author,.res-format,.res-card,.coverage-label{overflow-wrap:anywhere}
.res-author,.res-format,.coverage-label{color:#cbd5e1!important;opacity:1!important}.res-card{background:#0a101d!important}
.coverage-label{font-size:12px;border-left:2px solid #fbbf24;padding-left:8px;margin:0 0 10px}
.resource-scope{display:grid;gap:5px;font-size:13px;margin-top:10px}.resource-scope select{width:100%;min-height:38px}
.study-tools{max-width:1676px;margin:12px auto 0;background:#0a101d;border:1px solid rgba(212,175,55,.25);border-radius:12px;padding:12px 18px;color:#f8fafc}
.study-tools summary{cursor:pointer;font-weight:650;min-height:28px}.study-tools summary span{font-size:13px;font-weight:400;color:#cbd5e1;margin-left:12px}
.study-tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:12px 0}
.study-tools h2{font-size:16px;margin:10px 0}.study-tools p{font-size:14px;line-height:1.6;color:#cbd5e1}
.study-tools label,.passage-note-block label{display:block;margin:12px 0 6px;font-size:14px;color:#f8fafc}
.study-tools input:not([type=range]),.study-tools select{width:100%;min-height:42px;padding:8px;border-radius:6px}.study-tools input[type=range]{width:100%;accent-color:#fbbf24}
.study-button{border:1px solid #64748b;border-radius:7px;background:#0f172a;color:#f8fafc;padding:9px 12px;min-height:42px;margin:4px 5px 4px 0;cursor:pointer;font-size:14px;text-align:left}
.study-button:hover{border-color:#fbbf24}.study-button:disabled{opacity:.7;cursor:wait}.study-row{display:flex;gap:8px;align-items:center}.study-row input{min-width:0}.study-row button{flex-shrink:0}
.saved-studies{display:flex;flex-wrap:wrap;gap:4px;font-size:14px;max-height:200px;overflow:auto;margin-top:12px}
#studyStatus{margin:4px 0;min-height:1em;color:#fbbf24}.source-credit{font-size:13px;line-height:1.6}
.passage-note-block{padding:12px 0}.passage-note-block textarea{width:100%;padding:12px;border-radius:7px;resize:vertical}
.notes-drawer{overflow-y:auto!important;max-height:100dvh}.notes-drawer-content{min-height:0}
#wordOccurrences{display:grid;gap:4px;max-height:300px;overflow:auto}#wordOccurrences button{font-size:13px;line-height:1.5}
.reading-focus #passageResourcesPanel{display:none!important}.reading-focus .desk-workspace,.reading-focus .desk-workspace.lexicon-active{grid-template-columns:minmax(0,1fr)}
.reading-focus .scripture-stage{max-width:960px;width:100%;margin:auto}
.orig-flow-text.hebrew{direction:rtl}.orig-flow-word,.interlinear-word-box{cursor:pointer}.orig-flow-word:focus-visible,.interlinear-word-box:focus-visible{outline:3px solid #fbbf24}
#scriptureContent{color:#f8fafc;background:#0a101d}.verse-text,.orig-flow-trans{color:#f8fafc!important}
.res-video-thumb{max-height:120px;object-fit:cover}.res-panel-header{flex-shrink:0}.res-cards-list{min-height:100px}
.search-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}.search-controls select{padding:10px;min-height:44px}.search-controls p{font-size:14px;color:#cbd5e1}
.feature-card{background:#0a101d!important;color:#f8fafc!important;border:1px solid #475569!important;overflow-wrap:anywhere}.feature-card h2{font-size:20px}.feature-card small{color:#fbbf24}.feature-card p{color:#cbd5e1!important;line-height:1.65}
.subpage-main,.main-container{max-width:1200px}.site-footer{background:#0a101d!important}.site-footer a,.site-footer p{color:#cbd5e1!important}
#mobileMoreDrawer,#bookPickerModal{display:none!important}[hidden]{display:none!important}
@media(max-width:1100px){.header-actions{margin-left:0!important;flex-basis:100%}.header-hyperlinks{flex-basis:auto}.desk-workspace,.desk-workspace.lexicon-active{grid-template-columns:minmax(0,1fr) minmax(300px,340px)}.study-tools{margin:10px 16px}.study-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.header-inner{gap:10px!important}.app-header{padding:10px 12px}.brand-group{max-width:210px}.header-nav-center{flex-basis:100%}.header-hyperlinks{width:100%;gap:6px}.header-actions{gap:6px}.ws-tab-btn{flex:1;padding:8px!important}.desk-workspace,.desk-workspace.lexicon-active{display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:12px!important;gap:14px}.passage-resources-panel{position:static;max-height:75dvh;width:100%!important}.study-tools{margin:10px 12px}.study-tools-grid{grid-template-columns:minmax(0,1fr);gap:12px}.study-tools summary span{display:block;margin:5px 0}.scripture-stage{width:100%}.scripture-content{padding:16px!important}.parallel-grid{grid-template-columns:1fr!important}.notes-drawer{width:100%!important;max-width:100%!important}.study-row{flex-wrap:wrap}.interlinear-word-box{max-width:100%;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.mobile-header-menu{display:none}.banner-tools{flex-wrap:wrap;min-width:0;max-width:100%}
@media(max-width:800px){
 .header-hyperlinks,.header-actions{display:none!important}.header-inner{position:relative}.header-nav-center{order:3;flex-basis:100%!important}.header-nav-center>span,.nav-divider,.nav-section-divider{display:none!important}
 .mobile-header-menu{display:block;margin-left:auto;font-size:13px}.mobile-header-menu summary{padding:10px;border:1px solid #64748b;border-radius:7px;cursor:pointer}
 .mobile-header-menu[open]{flex-basis:100%;margin:0}.mobile-menu-content{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0}.mobile-menu-content a,.mobile-menu-content button{color:#f8fafc!important;background:#0f172a;border:1px solid #64748b;border-radius:7px;padding:10px;text-decoration:none;font-size:13px}
 .brand-group{max-width:210px}.mobile-menu-content select{width:100%;min-height:40px}.scripture-toolbar,.scripture-toolbar-main,.scripture-toolbar-row{flex-wrap:wrap!important}.banner-tools{width:100%}
}
.annot-action-bar{max-width:100%;flex-wrap:wrap}.annot-tool-btn{min-height:36px}.annot-active-label{overflow-wrap:anywhere}
@media(max-width:800px){.desk-nav-group{display:grid!important;grid-template-columns:minmax(0,1fr) 78px 36px 36px;gap:6px!important;width:100%}.desk-nav-group .nav-picker-select-wrap{min-width:0!important;width:auto!important}.desk-nav-group .nav-picker-select{max-width:100%;min-width:0!important;width:100%!important}.desk-nav-group .ref-jump-wrap{grid-column:1/-1;width:100%!important;min-width:0!important}.annot-action-bar{padding:6px;gap:4px;width:100%}.annot-tool-btn{padding:7px 6px}.banner-tools{display:flex;flex-wrap:wrap!important}.scripture-passage-banner{padding:16px!important}}
:root,[data-theme]{--text-muted:#e2e8f0;--text-faint:#e2e8f0}
.study-tools p,.study-tools summary span,.source-credit,.res-author,.res-format,.coverage-label,.feature-card p,.search-controls p,.site-footer p,.site-footer a{color:#e2e8f0!important}
#resPanelSub,#scripturePassageMeta,#annotActiveVerseLabel,#smPhonetic,.iw-translit,.iw-strongs,.iw-morph,.annot-tool-btn,.res-tab-btn,.lex-tab-btn{color:#f8fafc!important;opacity:1!important}
.res-tab-btn.active,.lex-tab-btn.active,.ws-tab-btn.active,.trans-btn.active{color:#000!important;background:#fbbf24!important}
.study-tools a,.feature-card a,.source-credit a,#scripturePassageMeta a,.interlinear-verse-header a{color:#e0f2fe!important;text-decoration:underline}
.study-button,.layer-btn,.search-btn-large,.btn-read-desk,.btn-pwa-install{background:#0f172a!important;color:#f8fafc!important;border:1px solid #64748b!important;box-shadow:none!important}
.layer-btn.active{border-color:#38bdf8!important}.study-button:hover,.btn-read-desk:hover{border-color:#fbbf24!important}
.annotation-text{user-select:text;-webkit-user-select:text}.annotation-text::selection,.annotation-text *::selection{background:#075985;color:#fff}
.word-annotation{box-decoration-break:clone;-webkit-box-decoration-break:clone}.word-highlight{background:#fbbf24;color:#000!important;border-radius:2px}.word-underline{text-decoration:underline;text-decoration-color:#38bdf8;text-decoration-thickness:3px;text-underline-offset:4px}.word-circle{border:2px solid #f87171;border-radius:999px;padding:0 2px;margin:0 1px}
.annotation-help{color:#e2e8f0;font-size:12px;line-height:1.6;margin:12px 0 0;max-width:70ch}
.video-modal-screen-wrap{min-width:0;aspect-ratio:16/9;position:relative}.video-modal-screen-wrap:has(#videoEmbedFallback[style*="display: flex"]){aspect-ratio:auto;min-height:260px}.video-modal-screen-wrap iframe{width:100%;height:100%;min-height:0}
.v-playlist-item{width:100%;text-align:left;font:inherit;border:0;color:#f8fafc;cursor:pointer}.v-playlist-item:focus-visible{outline:3px solid #fbbf24;outline-offset:-3px}
.video-modal-screen-wrap{padding-top:0!important;align-self:start;overflow:hidden}.video-modal-screen-wrap.has-video-fallback{aspect-ratio:auto;min-height:260px;background:#0a101d}.video-modal-screen-wrap #videoEmbedFallback{width:100%;min-height:260px!important}
.series-episode-row,.v-playlist-item{text-decoration:none!important}.series-episode-row:focus-visible{outline:3px solid #fbbf24;outline-offset:-3px}

#scriptureContent .christ-word{color:#9edbff}.word-highlight .christ-word,.christ-word .word-highlight{color:#000!important}
