:root{
  color-scheme:dark;
  --bg:#0b0e12;--surface:#11151b;--surface2:#171c24;--line:#252c36;
  --text:#f3f4f6;--soft:#c7cbd2;--muted:#838c99;--accent:#7480ee;
  --accentSoft:rgba(116,128,238,.14);--good:#55c995;--warn:#d7a64d;--danger:#df737b;
  --page:#22272f;--shadow:0 18px 55px rgba(0,0,0,.38)
}
*{box-sizing:border-box}[hidden]{display:none!important}
html,body{width:100%;height:100%;margin:0;overflow:hidden}
body{background:var(--bg);color:var(--text);font-family:"Segoe UI",Tahoma,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:default}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.appShell{height:100vh;display:grid;grid-template-rows:64px minmax(0,1fr)}
.topbar{display:grid;grid-template-columns:180px minmax(320px,720px) minmax(200px,1fr);gap:18px;align-items:center;padding:10px 18px;border-bottom:1px solid #1f252e;background:#0d1015;z-index:10}
.brand{display:flex;align-items:center;gap:10px}.brand strong{font-size:17px}
.searchBox{height:42px;display:grid;grid-template-columns:28px 1fr auto auto;align-items:center;background:#11161d;border:1px solid #29313c;border-radius:11px;padding:3px 4px 3px 10px}.searchBox:focus-within{border-color:#5661a0;box-shadow:0 0 0 3px rgba(116,128,238,.08)}.searchIcon{font-size:20px;color:#747e8d}.searchBox input,.searchBox select{height:34px;color:var(--text);background:transparent;border:0;outline:0}.searchBox input{min-width:0}.searchBox input::placeholder{color:#6f7885}.searchBox select{color:var(--soft);font-size:11px;border-inline-start:1px solid #2a313b;padding-inline:12px}.searchAction{height:34px;padding:0 15px;border-radius:8px;background:#1b212b;border:1px solid #303947;color:#e8eaf0}
.topActions{display:flex;gap:8px;justify-content:flex-start;align-items:center}.ocrMode{height:38px;display:flex;align-items:center;gap:7px;padding:0 9px;border:1px solid #2b333f;border-radius:9px;background:#151a21;color:#9fa7b3;font-size:10px}.ocrMode select{border:0;background:transparent;color:#e1e4ea;outline:0;font-size:11px}.ocrMode option{background:#151a21;color:#fff}.primaryBtn,.softBtn{height:38px;padding:0 15px;border-radius:9px;border:1px solid transparent;color:#fff;font-weight:650}.primaryBtn{background:var(--accent);border-color:#8791f4}.primaryBtn:hover{background:#818cf3}.softBtn{background:#151a21;border-color:#2b333f;color:#d9dde4}.softBtn:hover{background:#1b222c}
.main{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 0;direction:ltr;transition:grid-template-columns .18s ease}.main.resultsOpen{grid-template-columns:minmax(0,1fr) min(360px,30vw)}
.reader{min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px;padding:12px;direction:rtl}.readerHead{min-height:54px;display:flex;align-items:center;gap:16px;padding:8px 11px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.bookInfo{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.bookInfo strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bookInfo span{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.indexStatus{width:190px;display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:9px;border:1px solid #2b333d;background:#0e1217}.indexDot{width:7px;height:7px;border-radius:50%;background:#66707e;flex:0 0 auto}.indexCopy{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}.indexCopy>span{font-size:10px;color:#bac0c9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.indexTrack{height:3px;background:#272e37;border-radius:99px;overflow:hidden}.indexTrack i{display:block;height:100%;width:0;background:var(--accent);border-radius:99px;transition:width .2s ease}.indexStatus.processing .indexDot{background:var(--warn);box-shadow:0 0 0 3px rgba(215,166,77,.12)}.indexStatus.complete .indexDot{background:var(--good);box-shadow:0 0 0 3px rgba(85,201,149,.1)}.indexStatus.error .indexDot{background:var(--danger)}.indexStatus.partial .indexDot{background:var(--warn);box-shadow:0 0 0 3px rgba(215,166,77,.12)}.indexStatus.complete .indexTrack i{background:var(--good)}.indexStatus.partial .indexTrack i{background:var(--warn)}.indexStatus.error .indexTrack i{background:var(--danger)}
.miniBtn{height:32px;border:1px solid #29313b;border-radius:8px;background:#0d1116;color:#cbd0d7;font-size:10px;padding-inline:8px}.miniBtn:hover{background:#1b222b;color:#fff}.readerControls{display:flex;gap:7px;direction:ltr;flex:0 0 auto}.pageControl,.zoomControl{height:36px;display:flex;align-items:center;border:1px solid #29313b;background:#0d1116;border-radius:9px;overflow:hidden}.iconBtn,.zoomValue{height:34px;min-width:35px;border:0;background:transparent;color:#cbd0d7}.iconBtn:hover:not(:disabled),.zoomValue:hover:not(:disabled){background:#1b222b;color:#fff}.pageControl input{width:43px;height:28px;background:transparent;color:#f0f1f4;border:0;text-align:center;outline:0;appearance:textfield}.pageControl>span{font-size:10px;color:#727b88}.zoomValue{min-width:55px;font-size:10px;border-inline:1px solid #262e38}
.readerStage{position:relative;flex:1;min-height:0;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#191e25}
.emptyState{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.emptyIcon{width:54px;height:54px;border-radius:15px;display:grid;place-items:center;background:#11161d;border:1px solid #2b333e;color:#7f89f3;font-size:24px;margin-bottom:16px}.emptyState h1{font-size:20px;margin:0 0 8px}.emptyState p{font-size:12px;color:var(--muted);margin:0;max-width:420px;line-height:1.8}
.loading{position:absolute;z-index:8;top:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #313947;border-radius:999px;background:rgba(13,17,22,.94);box-shadow:0 10px 30px rgba(0,0,0,.26);font-size:10px;color:#d9dde4}.spinner{width:13px;height:13px;border:2px solid #38414f;border-top-color:#8992f4;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.pageViewport{position:absolute;inset:0;overflow:auto;direction:ltr;padding:26px 24px 80px;scrollbar-width:thin;scrollbar-color:#424b59 transparent}.pageStack{width:max-content;min-width:100%;display:flex;flex-direction:column;align-items:center;gap:18px;margin:0 auto}.pdfPage{position:relative;flex:0 0 auto;width:var(--page-width,800px);aspect-ratio:var(--page-ratio,210 / 297);height:auto;background:#fff;box-shadow:var(--shadow);border-radius:2px;overflow:hidden;contain:layout paint style}.pdfPage canvas{position:absolute;inset:0;display:block;width:100%;height:100%;background:#fff}.pdfPage.loadingPage::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,#f3f3f3 20%,#fafafa 40%,#f3f3f3 60%);background-size:220% 100%;animation:shimmer 1.15s linear infinite}@keyframes shimmer{to{background-position:-220% 0}}.highlightLayer{position:absolute;z-index:3;inset:0;pointer-events:none}.wordHighlight{position:absolute;background:rgba(255,196,46,.32);border:1.5px solid rgba(235,161,27,.95);border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.14)}.wordHighlight.textFallback{background:rgba(255,205,58,.28)}.pageBadge{position:absolute;bottom:8px;left:8px;padding:3px 6px;border-radius:6px;background:rgba(0,0,0,.58);color:#fff;font-size:9px;line-height:1;opacity:0;transition:opacity .15s ease}.pdfPage:hover .pageBadge{opacity:1}
.dropOverlay{position:absolute;z-index:20;inset:0;display:grid;place-items:center;background:rgba(9,12,16,.76);backdrop-filter:blur(3px)}.dropCard{padding:18px 24px;border:1px dashed #6f79d7;border-radius:12px;background:#11161d;color:#e9ebff;font-weight:650}
.resultsPanel{min-width:0;overflow:hidden;direction:rtl;border-inline-start:1px solid var(--line);background:#0d1116;opacity:0;pointer-events:none;transition:opacity .18s ease}.main.resultsOpen .resultsPanel{opacity:1;pointer-events:auto}.panelHead{height:64px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.panelHead>div{display:flex;flex-direction:column;gap:4px}.panelHead strong{font-size:13px}.panelHead small{font-size:10px;color:var(--muted)}.closeBtn{width:32px;height:32px;border:1px solid #2c343f;border-radius:8px;background:#151a21;color:#cfd3da;font-size:20px}.results{height:calc(100% - 64px);overflow:auto;padding:10px}.searchHit{padding:11px;border:1px solid transparent;border-radius:10px;cursor:pointer}.searchHit:hover{background:#151b22;border-color:#28313c}.searchHit.active{background:#171d28;border-color:#3d4770}.hitTop{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}.hitBook{font-size:11px;font-weight:650}.hitPage{font-size:9px;color:#9aa2ad}.snippet{font-size:11px;line-height:1.8;color:#afb6c0}.snippet mark{background:rgba(215,166,77,.24);color:#f1d19a;padding:0 2px;border-radius:2px}.emptyResults{padding:26px 14px;text-align:center;color:#77818e;font-size:11px;line-height:1.7}
.scrim{position:fixed;z-index:30;inset:0;background:rgba(0,0,0,.5)}.drawer{position:fixed;z-index:31;top:0;right:0;width:min(390px,92vw);height:100vh;transform:translateX(102%);transition:transform .2s ease;background:#0f1318;border-inline-start:1px solid #2a313b;display:flex;flex-direction:column}.drawer.open{transform:translateX(0)}.drawerTop{height:68px;display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--line)}.drawerTop h2{font-size:16px;margin:0 0 3px}.drawerTop small{font-size:10px;color:var(--muted)}.libraryTools{padding:11px;border-bottom:1px solid var(--line)}.filterBox{height:39px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #2c3440;background:#11161d;border-radius:9px}.filterBox span{color:#727c89}.filterBox input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#fff}.books{flex:1;overflow:auto;padding:8px}.book{width:100%;text-align:right;padding:11px 12px;margin-bottom:4px;border:1px solid transparent;border-radius:9px;background:transparent;color:#fff}.book:hover{background:#161c23;border-color:#28313b}.book.active{background:var(--accentSoft);border-color:#3f4875}.bookTitle{font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bookMeta{margin-top:5px;font-size:9px;color:#7d8793}.loadMore{margin:10px;height:38px;border-radius:9px;border:1px solid #2c3440;background:#151a21;color:#d5d9df}
.toast{position:fixed;z-index:50;bottom:18px;left:18px;max-width:min(420px,calc(100vw - 36px));padding:10px 13px;border:1px solid #323a45;border-radius:10px;background:#12171e;color:#e5e7ea;box-shadow:0 14px 40px rgba(0,0,0,.34);font-size:11px}
@media(max-width:980px){.topbar{grid-template-columns:auto 1fr auto}.indexStatus{width:160px;flex:0 1 160px}.readerHead{gap:8px}.bookInfo{max-width:34vw}.ocrMode span{display:none}}
@media(max-width:720px){.appShell{grid-template-rows:auto minmax(0,1fr)}.topbar{grid-template-columns:auto minmax(0,1fr);padding:8px 10px;gap:8px}.brand{grid-column:1}.searchBox{grid-column:1 / -1;grid-row:2;grid-template-columns:24px 1fr auto;order:3}.topActions{grid-column:2;grid-row:1;justify-content:flex-end}.topActions .softBtn{display:inline-flex}.primaryBtn,.softBtn{padding-inline:10px}.ocrMode{padding-inline:7px}.ocrMode select{max-width:74px}.reader{padding:8px}.readerHead{flex-wrap:wrap}.bookInfo{max-width:none;min-width:100%}.readerControls{width:100%;justify-content:space-between}.pageViewport{padding-inline:12px}.main.resultsOpen{grid-template-columns:minmax(0,1fr)}.resultsPanel{position:fixed;z-index:40;left:0;right:0;bottom:0;top:20vh;border:1px solid var(--line);border-bottom:0;border-radius:16px 16px 0 0;box-shadow:0 -18px 50px rgba(0,0,0,.45);transform:translateY(105%);opacity:1;transition:transform .2s ease}.main.resultsOpen .resultsPanel{transform:translateY(0);pointer-events:auto}.results{height:calc(100% - 64px)}}

@media(max-width:720px){.readerHead .indexStatus{order:3;width:100%;flex:1 0 100%;padding:7px 9px}.readerHead .indexTrack{height:5px}.readerHead .indexCopy>span{font-size:10px}.pdfPage{transition:none}.wordHighlight{border-width:2px;background:rgba(255,196,46,.38)}.resultsPanel{max-height:80vh}.searchHit{min-height:56px;padding:13px 12px}.snippet{font-size:12px}.pageViewport{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}}

/* v0.6 visual polish: calmer surfaces, tighter hierarchy, no extra chrome around the book. */
:root{
  --bg:#090c10;--surface:#10151b;--surface2:#151b23;--line:#242d37;
  --text:#f5f6f8;--soft:#cbd1d8;--muted:#87919e;--accent:#7783f3;
  --shadow:0 16px 46px rgba(0,0,0,.34)
}
.topbar{background:rgba(12,16,21,.96);backdrop-filter:blur(14px);border-bottom-color:#202832}
.searchBox{background:#0f151c;border-color:#2a3440;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.searchBox:focus-within{background:#111821;border-color:#5865b4;box-shadow:0 0 0 3px rgba(119,131,243,.10)}
.readerHead{background:rgba(16,21,27,.96);box-shadow:0 5px 20px rgba(0,0,0,.12)}
.bookInfo strong{font-size:13.5px;letter-spacing:.01em}.bookInfo span{color:#8993a1}
.readerStage{background:radial-gradient(circle at 50% 8%,#202732 0,#181e26 42%,#151a20 100%)}
.pdfPage{box-shadow:0 16px 46px rgba(0,0,0,.34),0 0 0 1px rgba(255,255,255,.035)}
.indexStatus{background:#0c1218;border-color:#29333f}.indexTrack{background:#202934;height:4px}.indexTrack i{box-shadow:0 0 12px rgba(119,131,243,.28)}
.primaryBtn{box-shadow:0 5px 18px rgba(119,131,243,.16)}
.searchHit{transition:background .14s ease,border-color .14s ease,transform .14s ease}.searchHit:hover{transform:translateY(-1px)}
.drawer{background:rgba(14,19,25,.985);backdrop-filter:blur(18px)}
.book{transition:background .14s ease,border-color .14s ease}.book.active{box-shadow:inset 3px 0 0 var(--accent)}
.toast{backdrop-filter:blur(14px);background:rgba(17,23,30,.96)}
.copyTextBtn{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;border:1px solid #29333f;border-radius:9px;background:#0d1218;color:#cbd2db;white-space:nowrap;transition:background .14s ease,border-color .14s ease,color .14s ease,transform .14s ease}
.copyTextBtn:hover:not(:disabled){background:#18202a;border-color:#3b4757;color:#fff;transform:translateY(-1px)}
.copyTextBtn>span:first-child{font-size:15px;line-height:1}.copyTextLabel{font-size:10px}.copyTextBtn.copied{border-color:rgba(85,201,149,.55);color:#8ee4b8;background:rgba(85,201,149,.08)}
@media(max-width:980px){.copyTextLabel{display:none}.copyTextBtn{width:36px;padding:0}.readerControls{gap:6px}}
@media(max-width:720px){.copyTextBtn{height:36px;min-width:36px}.readerHead{border-radius:11px}.pageViewport{padding-top:18px}.topbar{backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){.searchHit,.copyTextBtn,.indexTrack i,.main,.resultsPanel,.drawer{transition:none!important}}

/* v0.6.1 — language selection, live-index search notice and compact copy menu */
.languageMode select{max-width:118px}
.searchIndexNotice{color:#d7a64d!important;line-height:1.45}
.copyWrap{position:relative;display:inline-flex}
.copyMenu{position:absolute;z-index:70;top:calc(100% + 7px);inset-inline-end:0;min-width:170px;padding:5px;background:#10161d;border:1px solid #303946;border-radius:10px;box-shadow:0 14px 34px rgba(0,0,0,.34)}
.copyMenu button{display:block;width:100%;height:34px;border:0;border-radius:7px;background:transparent;color:#d9dde3;text-align:right;padding:0 10px;font:inherit;font-size:11px;cursor:pointer}
.copyMenu button:hover{background:#1a222c;color:#fff}
@media(max-width:980px){.languageMode span{display:none}.languageMode{padding-inline:5px}.languageMode select{max-width:92px}}
@media(max-width:720px){.topActions{gap:5px}.languageMode select{max-width:84px}.copyMenu{position:fixed;top:auto;bottom:14px;left:12px;right:12px;min-width:0;border-radius:13px;padding:7px}.copyMenu button{height:44px;font-size:12px}.panelHead{height:auto;min-height:64px}.searchIndexNotice{display:block;margin-top:2px}}

/* v0.6.3 — OFOQ Reader identity + simplified header/upload dialog foundation */
:root{
  --accent:#6676f4;
  --accent-strong:#7b88ff;
  --accentSoft:rgba(102,118,244,.14);
}
.topbar{
  grid-template-columns:minmax(180px,240px) minmax(360px,1fr) auto;
  gap:14px;
  padding:9px 16px;
  min-height:64px;
}
.brand{color:inherit;text-decoration:none;min-width:0;justify-self:start}
.brandCopy{display:flex;flex-direction:column;line-height:1.05;gap:4px;min-width:0}
.brandCopy strong{font-size:16px;letter-spacing:.12em;font-weight:800}
.brandCopy small{font-size:9px;color:#8f99a8;letter-spacing:.02em}
.searchBox{
  width:min(100%,900px);justify-self:center;height:44px;
  grid-template-columns:28px minmax(160px,1fr) auto auto;
  border-radius:12px;padding:4px 5px 4px 11px;
  box-shadow:inset 0 1px rgba(255,255,255,.02);
}
.searchBox input{font-size:12px;padding-inline:4px}.searchBox select{font-size:10px;min-width:105px}
.searchAction{height:34px;min-width:58px;border-radius:8px;background:#171e27;border-color:#303b49;font-weight:650}
.searchAction:hover{background:#202936;border-color:#3c4858}
.topActions{justify-content:flex-end;gap:7px;white-space:nowrap}
.emptyState{max-width:560px;padding:26px}.emptyEyebrow,.modalEyebrow{font-size:9px;font-weight:800;letter-spacing:.18em;color:#7e8cff;margin-bottom:7px}.emptyState h1{margin-top:0}.emptyState p{max-width:440px}
.emptyUploadBtn{margin-top:14px;height:39px;padding:0 16px;border:1px solid #7f8aff;border-radius:9px;background:var(--accent);color:#fff;font-weight:700}
.emptyUploadBtn:hover{background:#7380ff}

.modalScrim{position:fixed;z-index:80;inset:0;background:rgba(3,6,10,.72);backdrop-filter:blur(5px)}
.modalCard{
  position:fixed;z-index:81;top:50%;left:50%;transform:translate(-50%,-50%);
  width:min(480px,calc(100vw - 28px));padding:18px;
  border:1px solid #2b3542;border-radius:16px;background:#0f151c;color:#f4f6f8;
  box-shadow:0 28px 90px rgba(0,0,0,.52);direction:rtl;
}
.modalHead{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:10px}.modalHead h2{font-size:18px;margin:0}.modalClose{width:34px;height:34px;border-radius:9px;border:1px solid #2d3744;background:#151c25;color:#cdd3dc;font-size:21px}.modalClose:hover{background:#202936;color:#fff}
.modalIntro{margin:0 0 16px;color:#98a2af;font-size:11px;line-height:1.8}
.uploadSettings{display:grid;grid-template-columns:1fr 1fr;gap:10px}.uploadSettings label{display:flex;flex-direction:column;gap:7px;color:#a9b2be;font-size:10px}.uploadSettings select{height:42px;width:100%;border:1px solid #2c3643;border-radius:9px;background:#141b23;color:#eef1f5;padding:0 10px;outline:0}.uploadSettings select:focus{border-color:#5c69b7;box-shadow:0 0 0 3px rgba(102,118,244,.09)}
.uploadHint{margin:13px 0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid #26313d;border-radius:10px;background:#0c1218;font-size:10px}.uploadHint b{color:#dfe4eb}.uploadHint span{color:#7f8997;text-align:left}
.modalPrimary{width:100%;height:43px;border:1px solid #7f8aff;border-radius:10px;background:var(--accent);color:#fff;font-weight:750}.modalPrimary:hover:not(:disabled){background:#7481ff}.modalPrimary:disabled{opacity:.45;cursor:not-allowed}

@media(max-width:980px){
  .topbar{grid-template-columns:auto minmax(220px,1fr) auto;gap:8px}.brandCopy strong{font-size:14px}.brandCopy small{display:none}.searchBox{width:100%}
}
@media(max-width:720px){
  .topbar{grid-template-columns:auto 1fr;grid-template-rows:auto auto;padding:8px 10px}.brand{grid-column:1;grid-row:1}.topActions{grid-column:2;grid-row:1}.searchBox{grid-column:1/-1;grid-row:2}.searchBox{grid-template-columns:24px minmax(0,1fr) 106px auto}.brandCopy{display:flex}.brandCopy strong{font-size:13px}.brandCopy small{display:block;font-size:8px}.uploadSettings{grid-template-columns:1fr}.modalCard{padding:15px;border-radius:14px}.uploadHint{align-items:flex-start;flex-direction:column}.uploadHint span{text-align:right}.emptyUploadBtn{height:42px}
}

/* OFOQ visual system: cinematic dark horizon, warm neutral accent, reduced chrome. */
:root{
  --bg:#070b10;
  --surface:#0b1118;
  --surface2:#111820;
  --surface3:#151e28;
  --line:#27313d;
  --lineSoft:rgba(255,255,255,.07);
  --text:#f2f0eb;
  --soft:#d4d0c8;
  --muted:#8c96a1;
  --accent:#d6b47f;
  --accent-strong:#ecd4ad;
  --accentSoft:rgba(214,180,127,.12);
  --ok:#6ad7a1;
  --shadow:0 18px 55px rgba(0,0,0,.38)
}
html,body{background:var(--bg);color:var(--text)}
body{font-family:"Segoe UI",Tahoma,Arial,sans-serif}
.appShell{background:linear-gradient(180deg,#070b10 0,#090e14 100%)}
.topbar{
  position:relative;background:rgba(7,11,16,.96);border-bottom:1px solid rgba(255,255,255,.09);
  box-shadow:0 10px 34px rgba(0,0,0,.16)
}
.topbar:after{content:"";position:absolute;left:18%;right:18%;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,rgba(214,180,127,.65),transparent);pointer-events:none}
.brand{gap:0;text-decoration:none;min-width:max-content}
.brandCopy{gap:2px;align-items:flex-start}
.brandWordmark{font-family:Arial,Helvetica,sans-serif;font-size:18px;font-weight:900;letter-spacing:.20em;color:#fff;line-height:1}
.brandCopy small{font-size:8.5px;color:#9ba3ad;letter-spacing:.01em;line-height:1.15}
.searchBox{background:#0b1118;border-color:#29333e;border-radius:999px;height:43px;padding-inline:9px;box-shadow:none}
.searchBox:focus-within{background:#0d141c;border-color:rgba(214,180,127,.62);box-shadow:0 0 0 3px rgba(214,180,127,.08)}
.searchIcon{color:#b9b2a7}.searchBox input{color:#f5f2ec}.searchBox input::placeholder{color:#6f7a86}.searchBox select{border-color:#28323d;color:#b9c0c8;background:#0b1118}
.searchAction{background:#ede7dc;color:#0d1116;border-color:#ede7dc;font-weight:750;box-shadow:none}.searchAction:hover{background:#fff;border-color:#fff;color:#080b0f}
.primaryBtn,.modalPrimary,.emptyUploadBtn{background:#e6ddce!important;border-color:#e6ddce!important;color:#101318!important;box-shadow:none!important}.primaryBtn:hover,.modalPrimary:hover:not(:disabled),.emptyUploadBtn:hover{background:#fff!important;border-color:#fff!important;color:#0b0f14!important}
.softBtn{background:#0b1118;border-color:#29333e;color:#c9cdd2}.softBtn:hover{background:#131b24;border-color:#3b4652;color:#fff}
.readerHead{background:#0a1016;border-color:#222c36;box-shadow:none}.bookInfo strong{color:#f4f1eb}.bookInfo span{color:#7f8994}
.readerStage{background:radial-gradient(ellipse at 50% 0%,rgba(72,84,99,.18) 0,rgba(15,21,28,.72) 34%,#0b1016 72%)}
.readerStage:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(214,180,127,.035),transparent 19%)}
.readerStage{position:relative}
.emptyState{background:transparent;border:0;box-shadow:none}.emptyEyebrow,.modalEyebrow{color:var(--accent);letter-spacing:.19em}.emptyState h1{font-size:25px;font-weight:650;color:#f2eee8;letter-spacing:-.02em}.emptyState p{color:#8f99a5;line-height:1.9}
.emptyIcon{border-color:rgba(214,180,127,.28)!important;color:var(--accent)!important;background:rgba(214,180,127,.04)!important}
.indexStatus{background:#0b1218;border-color:#26313b}.indexTrack{background:#202832}.indexTrack i{background:linear-gradient(90deg,#a88b62,#e3c695);box-shadow:0 0 13px rgba(214,180,127,.26)}
.resultsPanel,.drawer,.modalCard{background:rgba(9,14,20,.985);border-color:#28323d}.panelHead,.drawerTop{border-color:#222c36}.searchHit{border-color:#222c36;background:#0d141b}.searchHit:hover{background:#121b24;border-color:#35414e}.searchHit.active{border-color:rgba(214,180,127,.52);background:rgba(214,180,127,.055)}
mark,.wordHighlight{background:rgba(214,180,127,.38)!important;color:inherit}.wordHighlight{border-color:rgba(214,180,127,.9)!important}
.copyTextBtn,.iconBtn,.zoomValue,.miniBtn{background:#0b1118;border-color:#29333e;color:#cbd0d6}.copyTextBtn:hover:not(:disabled),.iconBtn:hover:not(:disabled),.zoomValue:hover:not(:disabled),.miniBtn:hover:not(:disabled){background:#141d26;border-color:#44505e;color:#fff}
.copyMenu{background:#0b1118;border-color:#303b46}.copyMenu button:hover{background:#161f28}
.modalCard{box-shadow:0 28px 90px rgba(0,0,0,.56)}.uploadSettings select{background:#0b1219;border-color:#2a3540}.uploadSettings select:focus{border-color:rgba(214,180,127,.58);box-shadow:0 0 0 3px rgba(214,180,127,.07)}
.uploadHint{background:#0a1016;border-color:#252f39}
.pdfPage{box-shadow:0 22px 58px rgba(0,0,0,.46),0 0 0 1px rgba(255,255,255,.03)}
@media(max-width:720px){.topbar:after{left:8%;right:8%}.brandCopy strong{font-size:13px}.brandCopy small{font-size:7.5px}.searchBox{border-radius:11px}.searchAction{border-radius:8px}.emptyState h1{font-size:21px}}


/* v0.6.5 — current-book-first search + OFOQ header refinements */
.primaryBtn,.softBtn{display:inline-flex;align-items:center;justify-content:center;line-height:1}
.searchScopeWrap{position:relative;display:flex;align-items:center;height:34px;min-width:122px;border-inline-start:1px solid #28323d}
.searchScopeWrap select{appearance:none;-webkit-appearance:none;width:100%;height:34px!important;min-width:0;border:0!important;padding:0 11px 0 28px!important;background:transparent!important;color:#c8c3ba!important;cursor:pointer}
.searchScopeWrap .scopeChevron{position:absolute;right:8px;top:50%;transform:translateY(-54%);font-size:15px;line-height:1;color:#d6b47f;pointer-events:none}
.brandWordmark{white-space:nowrap}
@media(min-width:721px){
  .emptyState{width:min(560px,calc(100% - 48px));max-width:560px;left:50%;right:auto;transform:translateX(-50%)}
}
@media(max-width:720px){
  .topActions{align-items:center}
  .softBtn,.primaryBtn{align-self:center}
  .searchBox{grid-template-columns:24px minmax(0,1fr) 106px auto!important}
  .searchBox .searchScopeWrap{display:flex!important;min-width:106px;width:106px}
  .searchScopeWrap select{display:block!important;font-size:9.5px!important;padding-left:20px!important;padding-right:6px!important}
  .searchScopeWrap .scopeChevron{right:5px;font-size:13px}
  .brandCopy{align-items:flex-start}
  .brandWordmark{display:block!important;font-size:14px;letter-spacing:.18em}
}


/* v0.6.6 — official OFOQ logo asset + precise search-scope caret alignment */
.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  height:52px;
  overflow:visible;
}
.brandLogoImg{
  display:block;
  width:82px;
  height:auto;
  max-height:48px;
  object-fit:contain;
  object-position:center;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.20));
}
.searchScopeWrap{
  direction:rtl;
  min-width:126px;
}
.searchScopeWrap select{
  direction:rtl;
  text-align:right;
  padding:0 12px 0 30px!important;
}
.searchScopeWrap .scopeChevron{
  left:8px!important;
  right:auto!important;
  top:50%;
  transform:translateY(-50%);
}
@media(max-width:980px){
  .brand{min-width:80px;height:48px}
  .brandLogoImg{width:74px;max-height:44px}
}
@media(max-width:720px){
  .brand{min-width:68px;height:42px}
  .brandLogoImg{width:64px;max-height:38px}
  .searchScopeWrap select{padding-left:24px!important;padding-right:7px!important}
  .searchScopeWrap .scopeChevron{left:5px!important;right:auto!important}
}

/* v0.6.7 — generated OFOQ logo applied with tuned spacing and scale */
.brand{
  min-width:160px;
  height:58px;
  padding:0 2px 0 0;
  justify-self:start;
}
.brandLogoImg{
  width:148px;
  max-height:54px;
  object-position:center right;
  filter:drop-shadow(0 4px 16px rgba(0,0,0,.22));
}
@media(max-width:980px){
  .brand{min-width:132px;height:52px}
  .brandLogoImg{width:122px;max-height:46px}
}
@media(max-width:720px){
  .brand{min-width:100px;height:42px}
  .brandLogoImg{width:94px;max-height:34px}
}


/* v0.6.8 — transparent OFOQ logo */
.brand{min-width:150px;height:58px;padding:0 6px 0 0;justify-self:start;overflow:visible}
.brandLogoImg{width:138px;max-height:50px;height:auto;object-fit:contain;object-position:center right;filter:drop-shadow(0 2px 8px rgba(0,0,0,.16))}
@media(max-width:980px){.brand{min-width:122px;height:50px}.brandLogoImg{width:112px;max-height:42px}}
@media(max-width:720px){.brand{min-width:96px;height:40px}.brandLogoImg{width:86px;max-height:32px}}


/* v0.6.9 — smaller transparent OFOQ logo */
.brand{min-width:122px;height:52px;padding:0 8px 0 0;justify-self:start;overflow:visible}
.brandLogoImg{width:110px;max-height:40px;height:auto;object-fit:contain;object-position:center right;filter:drop-shadow(0 2px 8px rgba(0,0,0,.14))}
@media(max-width:980px){.brand{min-width:104px;height:46px}.brandLogoImg{width:94px;max-height:34px}}
@media(max-width:720px){.brand{min-width:84px;height:38px}.brandLogoImg{width:76px;max-height:28px}}
