.book-fullscreen{--full-book-contents-width:224px;position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;background:#26332e;color:#fff;width:100%;height:100%;height:100dvh;padding:0;margin:0;box-sizing:border-box}.book-fullscreen:fullscreen{height:100vh}.book-fullscreen-viewport{flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y}.book-fullscreen-viewport:focus-visible{outline:2px solid #9fd3b0;outline-offset:-2px}.book-fullscreen-spread{display:grid;align-items:center;justify-items:center;gap:12px;width:max-content;padding:12px;box-sizing:border-box}.book-fullscreen-viewport .book-sheet{touch-action:pan-x pan-y}.book-fullscreen .book-leaf{margin:0;break-inside:avoid;min-width:0}.book-fullscreen .book-page-label{margin:0;height:24px;line-height:24px;font-size:11px;color:#e8efe9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.book-fullscreen .book-sheet{box-shadow:0 4px 22px #0005}.book-fullscreen .book-leaf .book-sheet{margin:0}.book-fullscreen .book-a4{pointer-events:none}@media(max-width:650px){.book-fullscreen-spread{padding:8px}}@media print{.book-fullscreen{display:none!important}}

.book-fullscreen-body{display:flex;flex:1 1 auto;min-height:0;min-width:0}.book-fullscreen-contents{display:none;position:static;flex:0 0 var(--full-book-contents-width);width:var(--full-book-contents-width);box-sizing:border-box;overflow:auto;background:#f6f8f5;color:#263c32;padding:18px 10px;border-right:1px solid #ffffff12}.book-fullscreen-contents>strong{display:block;padding:0 10px 12px;font-size:14px}.book-fullscreen-contents button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:11px 10px;margin:3px 0;border:0;border-radius:9px;background:transparent;color:#59675f;box-shadow:none;font-size:12px}.book-fullscreen-contents button:hover{background:#eaf0e9}.book-fullscreen-contents button.active{background:#dfeedd;color:#276147;font-weight:600}.book-fullscreen-contents button span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.book-fullscreen-contents button small{flex:none;font-size:10px;color:#77867d}@media(max-width:650px){.book-fullscreen-contents{flex-basis:132px;width:132px;padding:12px 5px}.book-fullscreen-contents button{padding:10px 7px;gap:4px;font-size:11px}.book-fullscreen-contents button small{font-size:9px}}

button.book-fullscreen-fab{position:fixed;right:calc(22px + env(safe-area-inset-right,0px));bottom:calc(22px + env(safe-area-inset-bottom,0px));z-index:24;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:13px 19px;border:1px solid #ffffff45;border-radius:16px;background:#326e52;color:#fff;font:500 13px -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",sans-serif;letter-spacing:-.15px;box-shadow:0 6px 24px #173d3130,0 1px 4px #173d3120;cursor:pointer;max-width:calc(100vw - 32px);white-space:nowrap;transition:background-color .15s,box-shadow .15s}button.book-fullscreen-fab:hover{background:#285e45;box-shadow:0 8px 28px #173d3140}button.book-fullscreen-fab:focus-visible{outline:3px solid #78b48d;outline-offset:4px}@media(max-width:600px){button.book-fullscreen-fab{right:calc(14px + env(safe-area-inset-right,0px));bottom:calc(14px + env(safe-area-inset-bottom,0px));padding:12px 15px;font-size:12px;border-radius:14px}}@media print{button.book-fullscreen-fab{display:none!important}}
/* Keep the settings panel above the preview so it never changes the page fit. */
.book-fullscreen>.book-fullscreen-controls {
 position:relative;
 inset:auto;
 z-index:2;
 display:flex;
 align-items:center;
 flex-wrap:nowrap;
 gap:8px;
 flex:0 0 auto;
 box-sizing:border-box;
 width:100%;
 height:auto;
 min-height:0;
 padding:calc(8px + env(safe-area-inset-top,0px)) calc(12px + env(safe-area-inset-right,0px)) 8px calc(12px + env(safe-area-inset-left,0px));
 overflow:visible;
 background:#17261f;
}
.book-fullscreen-body{position:relative;z-index:1;overflow:hidden}
.book-fullscreen{padding-bottom:env(safe-area-inset-bottom,0px)}
.full-book-title{flex:none;margin-right:4px;font-size:15px;white-space:nowrap}
.full-book-navigation,.full-book-zoom{display:flex;align-items:center;flex:none;gap:4px}
.book-fullscreen-progress{flex:none;font-size:12px;white-space:nowrap}
.full-book-zoom{margin-left:auto}
.book-fullscreen-controls button,.book-fullscreen-options summary {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:4px;
 box-sizing:border-box;
 min-height:40px;
 min-width:38px;
 padding:6px 9px;
 white-space:nowrap;
 font-size:13px;
 touch-action:manipulation;
}
.book-fullscreen-controls label{display:inline-flex;align-items:center;gap:6px;margin:0;color:#fff;font-size:12px;font-weight:400;white-space:nowrap}
.book-fullscreen-controls input {
 box-sizing:border-box;
 width:62px;
 min-width:0;
 min-height:40px;
 padding:5px 7px;
 margin:0;
 background:#fff;
 color:#182c23;
 font-size:13px;
 touch-action:manipulation;
}
.full-book-zoom #fullBookZoomFit{min-width:59px;font-variant-numeric:tabular-nums}
.full-book-compact-icon{display:none}
.book-fullscreen.full-book-toc-open .book-fullscreen-contents{display:block}
.book-fullscreen-options{flex:none;min-width:0}
.book-fullscreen-options summary {
 border:1px solid #ffffff30;
 border-radius:9px;
 list-style:none;
 cursor:pointer;
 background:#ffffff12;
}
.book-fullscreen-options summary::-webkit-details-marker{display:none}
.book-fullscreen-options summary:hover,.book-fullscreen-options[open] summary{background:#ffffff22}
.book-fullscreen-options-panel {
 position:absolute;
 inset:auto calc(10px + env(safe-area-inset-right,0px)) auto auto;
 top:calc(100% + 4px);
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:8px;
 box-sizing:border-box;
 width:max-content;
 max-width:calc(100% - 20px);
 max-height:calc(100dvh - 70px);
 overflow:auto;
 overscroll-behavior:contain;
 padding:12px;
 background:#17261f;
 border:1px solid #ffffff30;
 border-radius:12px;
 box-shadow:0 6px 22px #0006;
}
.full-book-mobile-zoom{display:none}
@media(max-width:940px){.full-book-title,#fullBookTocToggle .full-book-wide-label{display:none}}
@media(max-width:700px){
 .book-fullscreen>.book-fullscreen-controls {
  --full-book-icon-width:44px;
  gap:3px;
  padding:calc(5px + env(safe-area-inset-top,0px)) calc(5px + env(safe-area-inset-right,0px)) 5px calc(5px + env(safe-area-inset-left,0px));
 }
 .full-book-navigation,.full-book-zoom{gap:2px}
 .book-fullscreen-controls button,.book-fullscreen-controls input,.book-fullscreen-options summary{min-height:44px}
 .book-fullscreen-controls input{font-size:16px}
 .full-book-navigation input {
  width:44px;
  padding:3px;
  text-align:center;
  appearance:textfield;
 }
 .full-book-navigation input::-webkit-inner-spin-button,.full-book-navigation input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
 .full-book-navigation button,.full-book-zoom button,.book-fullscreen-controls>#fullBookClose,
 .book-fullscreen-controls>#fullBookTocToggle,.book-fullscreen-options summary {
  width:var(--full-book-icon-width);
  min-width:0;
  padding:4px 0;
  font-size:16px;
 }
 .full-book-zoom #fullBookZoomFit{width:clamp(41px,12vw,56px);min-width:0;font-size:12px}
 .full-book-wide-label{display:none}
 .full-book-compact-icon{display:inline-flex}
 .full-book-navigation .full-book-jump-button,.book-fullscreen-controls>.full-book-zoom{display:none}
 .book-fullscreen-controls>.book-fullscreen-options{margin-left:auto}
 .book-fullscreen-options-panel{box-sizing:border-box;width:min(340px,calc(100vw - 20px))}
 .book-fullscreen-options-panel label{max-width:100%;flex-wrap:wrap}
 .book-fullscreen-options-panel :is(button,input){min-width:44px;min-height:44px}
 .full-book-mobile-zoom{display:flex;align-items:center;gap:8px;flex:1 1 100%;padding-bottom:10px;border-bottom:1px solid #ffffff30}
 .full-book-mobile-zoom>span{margin-right:auto;font-size:14px}
 .full-book-mobile-zoom>button{width:44px;min-width:44px}
 .full-book-mobile-zoom>#fullBookMobileZoomFit{width:auto;min-width:64px}
 .book-fullscreen.full-book-toc-open .book-fullscreen-contents{flex:1;width:100%}
 .book-fullscreen.full-book-toc-open #fullBookViewport{display:none}
 .book-fullscreen-contents button{min-height:44px}
}
@media(max-width:580px){
 .book-fullscreen-progress{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}
