.lmfb-launch-wrap{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin:1rem 0 1.25rem}.lmfb-launch.button{display:inline-flex!important;align-items:center;gap:.55rem;min-height:48px;padding:.72rem 1.15rem!important;border:0!important;border-radius:14px!important;background:#0d3159!important;color:#fff!important;font-weight:800!important;box-shadow:0 8px 24px rgba(13,49,89,.18)!important;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}.lmfb-launch.button:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(13,49,89,.24)!important}.lmfb-launch-icon{font-size:1.25em}.lmfb-launch-note{font-size:.86rem;color:#687386}.lmfb-modal[hidden]{display:none!important}.lmfb-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:14px;direction:rtl}.lmfb-backdrop{position:absolute;inset:0;background:rgba(5,16,30,.84);backdrop-filter:blur(5px)}.lmfb-shell{position:relative;width:min(1180px,96vw);height:min(860px,94vh);display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;border:1px solid rgba(255,255,255,.14);border-radius:22px;background:linear-gradient(180deg,#15283e,#091727);box-shadow:0 30px 90px rgba(0,0,0,.45);color:#fff}.lmfb-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.1);background:rgba(6,20,36,.92)}.lmfb-heading{display:flex;flex-direction:column;gap:2px;min-width:0}.lmfb-heading strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.98rem}.lmfb-heading small{font-size:.76rem;color:#aebdce}.lmfb-toolbar-actions{display:flex;gap:8px;direction:ltr}.lmfb-tool{width:40px;height:40px;border:0;border-radius:12px;background:rgba(255,255,255,.10);color:#fff;font-size:1.35rem;line-height:1;cursor:pointer}.lmfb-tool:hover{background:rgba(255,255,255,.18)}.lmfb-close{font-size:1.8rem}.lmfb-stage{position:relative;display:flex;align-items:center;justify-content:center;gap:14px;min-height:0;padding:18px 58px 14px;outline:none;direction:ltr}.lmfb-book{position:relative;display:flex;justify-content:center;align-items:center;width:min(940px,78vw);height:100%;max-height:740px;perspective:2200px;filter:drop-shadow(0 24px 32px rgba(0,0,0,.42));user-select:none}.lmfb-page{position:relative;height:min(100%,740px);aspect-ratio:993/1404;background:#fff;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.28);transform-style:preserve-3d}.lmfb-page img{display:block;width:100%;height:100%;object-fit:contain;background:#fff;pointer-events:none;-webkit-user-drag:none}.lmfb-page-left{border-radius:8px 0 0 8px}.lmfb-page-right{border-radius:0 8px 8px 0}.lmfb-book.is-cover .lmfb-page-left,.lmfb-book.is-cover .lmfb-gutter{display:none}.lmfb-book.is-cover .lmfb-page-right{border-radius:8px}.lmfb-book.is-last-single .lmfb-page-right{visibility:hidden}.lmfb-gutter{width:9px;height:96%;margin:0 -4px;z-index:3;background:linear-gradient(90deg,rgba(0,0,0,.22),rgba(255,255,255,.32),rgba(0,0,0,.18));box-shadow:0 0 12px rgba(0,0,0,.25)}.lmfb-nav{position:absolute;top:50%;z-index:8;transform:translateY(-50%);width:48px;height:64px;border:0;border-radius:16px;background:rgba(255,255,255,.12);color:#fff;font-size:2.4rem;line-height:1;cursor:pointer;backdrop-filter:blur(4px)}.lmfb-prev{left:8px}.lmfb-next{right:8px}.lmfb-nav:hover:not(:disabled){background:rgba(255,255,255,.22)}.lmfb-nav:disabled{opacity:.25;cursor:not-allowed}.lmfb-turn-sheet{display:none;position:absolute;z-index:7;top:50%;height:min(100%,740px);aspect-ratio:993/1404;transform:translateY(-50%);background:#fff;overflow:hidden;box-shadow:0 4px 22px rgba(0,0,0,.36);backface-visibility:hidden;transform-style:preserve-3d}.lmfb-turn-sheet img{width:100%;height:100%;object-fit:contain}.lmfb-turn-sheet.is-next{display:block;right:0;transform-origin:left center;animation:lmfbNext .44s cubic-bezier(.45,.02,.3,1)}.lmfb-turn-sheet.is-prev{display:block;left:0;transform-origin:right center;animation:lmfbPrev .44s cubic-bezier(.45,.02,.3,1)}@keyframes lmfbNext{0%{transform:translateY(-50%) rotateY(0deg)}100%{transform:translateY(-50%) rotateY(-165deg)}}@keyframes lmfbPrev{0%{transform:translateY(-50%) rotateY(0deg)}100%{transform:translateY(-50%) rotateY(165deg)}}.lmfb-footer{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:14px;padding:10px 16px;border-top:1px solid rgba(255,255,255,.1);background:rgba(6,20,36,.92);direction:ltr}.lmfb-progress{height:6px;border-radius:99px;background:rgba(255,255,255,.12);overflow:hidden}.lmfb-progress span{display:block;width:0;height:100%;border-radius:inherit;background:#66a9e8;transition:width .2s ease}.lmfb-counter{font-variant-numeric:tabular-nums;font-weight:700;font-size:.88rem;color:#d9e6f2}.lmfb-preview-badge{padding:.32rem .56rem;border:1px solid rgba(255,255,255,.18);border-radius:8px;font-size:.68rem;letter-spacing:.08em;color:#a9bfd4}.lmfb-modal.is-fullscreen .lmfb-shell{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}.lmfb-modal.is-fullscreen{padding:0}.lmfb-modal.is-fullscreen .lmfb-book{max-height:calc(100vh - 130px)}body.lmfb-open{overflow:hidden!important}
@media(max-width:760px){.lmfb-modal{padding:0}.lmfb-shell{width:100vw;height:100dvh;border-radius:0}.lmfb-heading small{display:none}.lmfb-stage{padding:10px 8px 8px}.lmfb-book{width:100%;max-height:calc(100dvh - 128px)}.lmfb-page-left,.lmfb-gutter{display:none!important}.lmfb-page-right{height:min(100%,calc(100dvh - 140px));max-width:calc(100vw - 24px);border-radius:8px!important}.lmfb-book.is-last-single .lmfb-page-right{visibility:visible}.lmfb-nav{width:38px;height:54px;opacity:.86;background:rgba(5,20,37,.65)}.lmfb-prev{left:3px}.lmfb-next{right:3px}.lmfb-footer{grid-template-columns:1fr auto;padding:9px 12px}.lmfb-preview-badge{display:none}.lmfb-turn-sheet{right:50%!important;left:auto!important;transform:translate(50%,-50%);height:min(100%,calc(100dvh - 140px));max-width:calc(100vw - 24px)}.lmfb-turn-sheet.is-next{transform-origin:left center;animation:lmfbNextMobile .4s ease}.lmfb-turn-sheet.is-prev{transform-origin:right center;animation:lmfbPrevMobile .4s ease}@keyframes lmfbNextMobile{0%{transform:translate(50%,-50%) rotateY(0)}100%{transform:translate(50%,-50%) rotateY(-160deg)}}@keyframes lmfbPrevMobile{0%{transform:translate(50%,-50%) rotateY(0)}100%{transform:translate(50%,-50%) rotateY(160deg)}}}
@media(prefers-reduced-motion:reduce){.lmfb-turn-sheet.is-next,.lmfb-turn-sheet.is-prev{animation:none}.lmfb-launch.button{transition:none}}
/* Universal PDF preview (5.4.0) */
.lmfb-book{--lmfb-page-ratio:.70707}
.lmfb-page,.lmfb-turn-sheet{aspect-ratio:var(--lmfb-page-ratio)}
.lmfb-page canvas,.lmfb-turn-sheet canvas{display:none;width:100%;height:100%;object-fit:contain;background:#fff;pointer-events:none}
.lmfb-status{position:absolute;z-index:20;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;background:rgba(7,21,37,.64);color:#fff;font-weight:700;text-align:center;padding:20px;backdrop-filter:blur(2px)}
.lmfb-status[hidden]{display:none!important}
.lmfb-status.is-error{color:#ffe0e0;background:rgba(62,11,17,.78)}
.lmfb-spinner{width:24px;height:24px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:lmfbSpin .8s linear infinite}
.lmfb-status.is-error .lmfb-spinner{display:none}
@keyframes lmfbSpin{to{transform:rotate(360deg)}}

/* 5.4.2 — smoother PDF flipping / compositor stability */
.lmfb-book,.lmfb-page,.lmfb-turn-sheet{
  -webkit-font-smoothing:antialiased;
  transform:translateZ(0);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
.lmfb-book{will-change:transform,opacity;contain:layout paint style}
.lmfb-page canvas,.lmfb-turn-sheet canvas{
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  transform:translateZ(0);
}

/* 5.4.3 — true double-sided page turn; no fade/translate of the whole book. */
.lmfb-book{
  transform:none !important;
  will-change:auto !important;
  contain:none !important;
}
.lmfb-page.is-empty{
  background:transparent;
  box-shadow:none;
}
.lmfb-turn-sheet{
  pointer-events:none;
  will-change:transform;
  backface-visibility:visible !important;
  -webkit-backface-visibility:visible !important;
  transform-style:preserve-3d;
}
.lmfb-turn-face{
  position:absolute;
  inset:0;
  overflow:hidden;
  background:#fff;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  transform-style:preserve-3d;
}
.lmfb-turn-front{transform:rotateY(0deg)}
.lmfb-turn-back{transform:rotateY(180deg)}
.lmfb-turn-face.is-empty{background:#fff}
.lmfb-turn-face img,
.lmfb-turn-face canvas{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
  pointer-events:none;
}
.lmfb-turn-sheet.is-next,
.lmfb-turn-sheet.is-prev{
  animation-duration:.48s !important;
  animation-timing-function:cubic-bezier(.22,.61,.36,1) !important;
  animation-fill-mode:forwards !important;
}
.lmfb-turn-sheet.is-next{
  box-shadow:-12px 7px 24px rgba(0,0,0,.32);
}
.lmfb-turn-sheet.is-prev{
  box-shadow:12px 7px 24px rgba(0,0,0,.32);
}
@media(min-width:761px){
  .lmfb-turn-sheet.is-cover-source.is-next{
    right:25% !important;
    left:auto !important;
  }
}
@media(max-width:760px){
  .lmfb-turn-sheet.is-next,
  .lmfb-turn-sheet.is-prev{
    animation-duration:.42s !important;
  }
}
@media(prefers-reduced-motion:reduce){
  .lmfb-turn-sheet.is-next,
  .lmfb-turn-sheet.is-prev{
    animation-duration:.01ms !important;
  }
}
