/* 3.1.1: overrides for the existing reader only. */
#gmr-root [hidden] {display:none!important;}
#gmr-root .gmr-load-status[hidden] {display:none!important;}
#gmr-root .gmr-page-img {user-select:none;-webkit-user-select:none;-webkit-user-drag:none;}
#gmr-root #gmr-book-option {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-size:13px;}
#gmr-root #gmr-book-option select {min-height:44px;max-width:60%;background:#242631;color:#fff;border:1px solid #535666;border-radius:10px;padding:6px;}
#gmr-root:not([data-mode="double"]) #gmr-book-option {display:none;}
#gmr-root[data-mode="double"] .gmr-setting-fit-group {display:none!important;}
#gmr-root[data-mode="double"] .gmr-pages-track {overflow:hidden!important;}
#gmr-root[data-mode="double"] .gmr-page.gmr-page-visible {
 flex:0 0 var(--gmr-leaf-w)!important;width:var(--gmr-leaf-w)!important;max-width:none!important;
 height:var(--gmr-book-h)!important;min-height:0!important;align-self:center!important;overflow:hidden!important;
 box-shadow:0 10px 45px #0006!important;
}
#gmr-root[data-mode="double"] .gmr-page.gmr-page-visible .gmr-page-inner,
#gmr-root[data-mode="double"] .gmr-page.gmr-page-visible .gmr-page-picture,
#gmr-root[data-mode="double"] .gmr-page.gmr-page-visible .gmr-page-img {
 width:100%!important;height:100%!important;max-width:100%!important;min-height:0!important;max-height:100%!important;object-fit:contain!important;
}
#gmr-root[data-mode="double"] .gmr-page.gmr-page-visible .gmr-page-inner::after {
 content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset -9px 0 14px -13px #000b;
}
#gmr-root[data-mode="double"] .gmr-page.gmr-page-right .gmr-page-inner::after {box-shadow:inset 9px 0 14px -13px #000b;}
#gmr-root .gmr-book-host {position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;z-index:2;touch-action:none;filter:drop-shadow(0 16px 30px #0008);}
#gmr-root .gmr-book-leaf {background:#eeeae2;overflow:hidden;user-select:none;-webkit-user-select:none;}
#gmr-root .gmr-book-leaf .gmr-page-inner,#gmr-root .gmr-book-leaf .gmr-page-picture,
#gmr-root .gmr-book-leaf .gmr-page-img {
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
 margin:0!important;padding:0!important;border-radius:0!important;object-fit:contain!important;
}
#gmr-root .gmr-book-leaf .gmr-page-inner {position:relative;}
#gmr-root .gmr-book-leaf .gmr-page-badge {display:none!important;}
#gmr-root .gmr-book-leaf::after {content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset -8px 0 18px -12px #000a;}
#gmr-root .gmr-book-leaf.--right::after {box-shadow:inset 8px 0 18px -12px #000a;}
#gmr-root.gmr-book-active .gmr-pages-track {pointer-events:none;}
#gmr-root.gmr-book-active .gmr-completion {pointer-events:auto;}
#gmr-root.gmr-book-active .gmr-pages-wrap {z-index:10;pointer-events:none;}
#gmr-root.gmr-book-active .gmr-pages-wrap,#gmr-root.gmr-book-active .gmr-pages-track {background:transparent!important;}
#gmr-root[data-zoomed="true"] .gmr-pages-track {touch-action:none;}
#gmr-root:not([data-mode="strip"]) .gmr-pages-track {touch-action:none;}
#gmr-root .gmr-lightbox,#gmr-root .gmr-zoom-stage {display:none!important;}
#gmr-root .gmr-sheet-close {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
 padding:10px!important;font-size:28px!important;line-height:1!important;border-radius:14px!important;background:#ffffff0d!important;
}
#gmr-root .gmr-sheet-close svg {width:24px!important;height:24px!important;flex:none;}
#gmr-root .gmr-sheet-drag {position:relative;width:100%!important;height:24px!important;min-height:24px;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;touch-action:none;cursor:grab;}
#gmr-root .gmr-sheet-drag::after {content:"";position:absolute;width:42px;height:5px;border-radius:8px;background:#818392;left:calc(50% - 21px);top:10px;}
#gmr-root .gmr-sheet-head {touch-action:none;flex-shrink:0;}
#gmr-root .gmr-sheet {display:flex;flex-direction:column;}
#gmr-root .gmr-sheet-body {flex:1;min-height:0;overflow-y:auto!important;}
#gmr-root .gmr-switch,#gmr-root .gmr-switch:hover,#gmr-root .gmr-switch:active {
 appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box!important;
 width:48px!important;height:28px!important;min-width:48px!important;min-height:28px!important;
 padding:0!important;border:1px solid #6e7081!important;border-radius:99px!important;position:relative!important;
 background:#3b3d4b!important;box-shadow:none!important;transform:none!important;
}
#gmr-root .gmr-switch::before {content:"";position:absolute;inset:-9px -3px;}
#gmr-root .gmr-switch[aria-checked="true"] {background:#e96e0d!important;border-color:#ff9c4d!important;}
#gmr-root .gmr-switch-knob,#gmr-root .gmr-switch:hover .gmr-switch-knob {
 position:absolute!important;top:3px!important;left:3px!important;width:20px!important;height:20px!important;min-width:0!important;min-height:0!important;
 background:#fff!important;border:0!important;border-radius:50%!important;padding:0!important;box-shadow:0 1px 3px #0004!important;transform:translateX(0)!important;
}
#gmr-root .gmr-switch[aria-checked="true"] .gmr-switch-knob {transform:translateX(20px)!important;}
#gmr-root input.gmr-slider {appearance:none!important;-webkit-appearance:none!important;height:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:0!important;background:linear-gradient(#555867,#555867) center/100% 4px no-repeat!important;box-shadow:none!important;touch-action:pan-y;}
#gmr-root input.gmr-slider::-webkit-slider-thumb {appearance:none!important;-webkit-appearance:none!important;width:22px!important;height:22px!important;border:2px solid #ffc191!important;border-radius:50%!important;background:#ff851f!important;box-shadow:0 1px 4px #0005!important;}
#gmr-root input.gmr-slider::-moz-range-thumb {width:19px;height:19px;border:2px solid #ffc191;border-radius:50%;background:#ff851f;}
#gmr-root #gmr-comments-sheet .gmr-sheet-body {display:flex;flex-direction:column;overflow:hidden!important;padding:12px!important;}
#gmr-root #gmr-comments-sheet .gmr-cpanel-active {display:flex!important;flex-direction:column;flex:1;min-height:0;overflow:auto;}
#gmr-root #gmr-comments-sheet #gmr-cpanel-bolum {overflow:hidden;}
#gmr-root #gmr-comments-area {display:flex;flex:1;min-height:0;overflow:hidden;}
#gmr-root #gmr-comments-sheet .gmrp-comments-box {display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;gap:8px;}
#gmr-root .gmrp-comments-box__head {flex-shrink:0;}
#gmr-root #gmr-comments-sheet .gmrp-comments-box__head {display:none;}
#gmr-root #gmr-comments-sheet .gmrp-comments-list {flex:1;min-height:70px;overflow-y:auto;overscroll-behavior:contain;padding:0 4px 6px 0;scrollbar-width:thin;}
#gmr-root #gmr-comments-sheet .gmrp-comment-form {flex-shrink:0;max-height:45%;overflow-y:auto;padding:10px!important;margin:0!important;}
#gmr-root #gmr-comments-sheet .gmrp-comment-form textarea {display:block;box-sizing:border-box;width:100%;min-height:54px!important;max-height:140px!important;resize:none;font-size:16px!important;line-height:1.5!important;padding:10px!important;}
#gmr-root .gmrp-comment-form__footer {display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;}
#gmr-root .gmrp-comment-form__footer label {display:inline-flex;align-items:center;gap:6px;font-size:12px;}
#gmr-root .gmrp-comment-form__footer input[type="checkbox"] {width:18px!important;height:18px!important;min-height:0!important;margin:0!important;accent-color:#ff851f;}
#gmr-root [data-gmrp-comment-submit] {background:#ed7716!important;color:#fff!important;font-weight:700;border:0!important;}
#gmr-root .gmrp-comment-form__footer button {min-height:44px;padding:10px 16px;border-radius:12px;}
#gmr-root .gmrp-comment-form__hint {font-size:11px!important;}
#gmr-root .gmrp-comment-form__guest input {min-width:0;width:100%;font-size:16px;}
#gmr-root .gmrp-comment__content {font-size:15px;line-height:1.65;overflow-wrap:anywhere;}
#gmr-root .gmrp-comment {display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;gap:10px!important;}
#gmr-root .gmrp-comment__body {min-width:0!important;width:auto!important;}
#gmr-root .gmrp-comment__avatar,#gmr-root .gmrp-comment__avatar img {width:32px!important;height:32px!important;border-radius:50%;}
#gmr-root .gmrp-comment__actions button {min-height:44px;padding:8px 10px;}
#gmr-root .gmrp-comment__replies {margin-left:8px!important;padding-left:8px!important;border-left:2px solid #444653;}
#gmr-root .gmrp-comment__replies .gmrp-comment {padding:10px!important;}
#gmr-root .gmrp-comment-sort-label {margin:0!important;font-size:12px;flex-shrink:0;}
@media(max-width:1023px){
 #gmr-root .gmr-sheet {left:0!important;right:0!important;bottom:0!important;max-width:none!important;height:min(84dvh,860px);height:min(calc(var(--gmr-vh,100dvh) * .9),860px);}
 #gmr-root .gmr-sheet.gmr-sheet-open {transform:translateY(var(--gmr-sheet-pull,0px))!important;}
 #gmr-root .gmr-sheet.gmr-sheet-dragging {transition:none!important;}
 #gmr-root #gmr-comments-sheet {height:calc(var(--gmr-vh,100dvh) - 8px)!important;}
 #gmr-root .gmr-topbar-inner {min-width:0;}
 #gmr-root .gmr-topbar-tools {flex-shrink:0;}
 #gmr-root .gmr-cine-options label {align-items:flex-start;}
 #gmr-root .gmrp-comment-form__guest {display:grid;grid-template-columns:1fr 1fr;}
 #gmr-root .gmrp-comment-form__guest label {min-width:0;}
}
@media(hover:none){#gmr-root .gmr-opt:hover,#gmr-root .gmr-tb-btn:hover {box-shadow:none!important;transform:none!important;}}
@media(max-height:550px){
 #gmr-root #gmr-comments-sheet .gmr-sheet-head {padding:2px 12px!important;min-height:48px!important;}
 #gmr-root #gmr-comments-sheet .gmr-tabs {padding:0 8px!important;margin:0!important;}
 #gmr-root #gmr-comments-sheet .gmrp-comment-form {max-height:60%;}
 #gmr-root #gmr-comments-sheet .gmrp-comment-form textarea {min-height:44px!important;max-height:78px!important;}
 #gmr-root #gmr-comments-sheet .gmrp-comment-form__hint {display:none;}
 #gmr-root #gmr-comments-sheet .gmrp-comment-sort-label select {min-height:36px;}
}
