:root { --acc: #7c3aed; --accd: #6d28d9; --accbg: #f3effd }
.app { height: 100vh; height: 100dvh } #vStart { overflow: auto } #vWork { overflow: hidden }
.busy { margin-top: 14px; display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--tx2) } .drop.wait { opacity: .6; pointer-events: none }
#reader { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #16181c }
.rbar { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: #1f2228; color: #d6d9de; flex-wrap: wrap } .rbar .sp { flex: 1 } .rbar label { display: flex; gap: 6px; align-items: center; font-size: 13px; white-space: nowrap }
.rbar .btn { background: #2a2e36; border-color: #3a3f48; color: #e6e8eb } .rbar .btn:hover { background: #343944 } .rbar .btn.on { background: var(--acc); border-color: var(--acc) }
.rbar .seg { border-color: #3a3f48 } .rbar .seg button { background: #2a2e36; color: #c9ccd1; border-color: #3a3f48; height: 32px } .rbar .seg button.on { background: var(--acc); color: #fff }
#page { flex: 1; overflow: auto; display: flex; justify-content: center; align-items: flex-start; cursor: pointer; padding: 8px; gap: 0 }
#page[data-fit=height] { align-items: center } #page[data-fit=height] img { max-height: 100%; max-width: 100% } #page[data-fit=width] img { width: 100%; max-width: 1100px; height: auto } #page.two[data-fit=width] img { width: 50%; max-width: 700px }
#page.two[data-fit=height] img { max-width: 50% } #page img { display: block; object-fit: contain; user-select: none; -webkit-user-drag: none }
.nav { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: #1f2228; color: #c9ccd1 } .nav input { flex: 1; accent-color: var(--acc) } #pageN { font-family: var(--mono); font-size: 12.5px; min-width: 130px; text-align: right }
.nav .btn { background: #2a2e36; border-color: #3a3f48; color: #e6e8eb }
#gridBox { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; padding: 18px; align-content: start }
#gridBox button { border: 0; background: none; color: #c9ccd1; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center; font: inherit; font-size: 12px } #gridBox .im { width: 100%; aspect-ratio: .68; background: #2a2e36 center / cover no-repeat; display: block }
input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; background: #3a3f48; border-radius: 0 } input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 20px; background: var(--acc); border-radius: 0 }
.go .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px } .go .row2 .btn { width: auto }
.keys { font-size: 12.5px; color: var(--tx2); line-height: 1.7 } .keys kbd { font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--line); padding: 0 5px; background: #fafbfc }
