.app-flipbook{
  --fb-primary:var(--primary-color, #289deb);
  --fb-primary-light:color-mix(in srgb, var(--primary-color, #289deb) 65%, white);
  position:relative;
  width:100%;
  min-height:240px;
  border-radius:24px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  isolation:isolate;
}
.app-flipbook *{box-sizing:border-box;}

.app-fvf-stage{
  position:relative;
  width:100%;
  border-radius:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:460px;
}

.app-fvf-scene{
  position:absolute;
  inset:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:0;
}

.app-fvf-bglayer{
  position:absolute;
  inset:0;
  z-index:0;
  transition:filter .35s ease;
  will-change:filter;
}
.app-fvf-bglayer::after{
  content:'';
  position:absolute;inset:0;
  background:radial-gradient(ellipse 120% 90% at 50% 8%,rgba(255,255,255,.08),transparent 55%);
  pointer-events:none;
}

.app-fvf-loader{
  position:absolute;inset:0;z-index:6;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;
  background:rgba(12,16,24,.22);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  opacity:1;transition:opacity .6s cubic-bezier(.22,1,.36,1);
}
.app-fvf-loader.is-hidden{opacity:0;pointer-events:none;}

.app-fvf-loader-mark{
  width:64px;height:64px;position:relative;
}
.app-fvf-loader-mark svg{width:100%;height:100%;}
.app-fvf-loader-ring-bg{
  fill:none;stroke:rgba(255,255,255,.18);stroke-width:5;
}
.app-fvf-loader-ring-fg{
  fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round;
  stroke-dasharray:175;
  transform-origin:center;
  transform:rotate(-90deg);
  transition:stroke-dashoffset .35s cubic-bezier(.22,1,.36,1);
}
.app-fvf-loader-pct{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums;
}
.app-fvf-loader-text{
  font-size:13.5px;font-weight:600;color:rgba(255,255,255,.88);letter-spacing:.01em;
}

.app-fvf-book-wrap{
  position:relative;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 48px 108px;
  z-index:1;
  opacity:0;
  transform:translateY(18px);
  transition:opacity .5s ease-out,transform .5s ease-out;
  will-change:opacity,transform;
  overflow:hidden;
}
.app-fvf-book-wrap.is-ready{
  opacity:1;
  transform:translateY(0);
}
.app-fvf-book-wrap.is-ready{
  will-change:auto;
}

.app-fvf-book-stand{
  position:relative;
  overflow:hidden;
  transition:transform .25s cubic-bezier(.22,1,.36,1);
  transform-origin:center center;
}
.app-fvf-book-stand.is-panning{
  transition:none;
}

.app-fvf-pan-overlay{
  position:absolute;
  inset:0;
  z-index:5;
  display:none;
  touch-action:none;
}
.app-fvf-pan-overlay.is-active{
  display:block;
  cursor:grab;
}
.app-fvf-pan-overlay.is-active.is-grabbing{
  cursor:grabbing;
}

.app-fvf-book{
  position:relative;
  z-index:1;
}

.app-fvf-page{
  background:#fdfdfc;
  position:relative;
}
.app-fvf-page canvas,.app-fvf-page img{
  width:100%;height:100%;display:block;object-fit:contain;
  background:#fdfdfc;
}
.app-fvf-page-edge{
  position:absolute;inset:0;pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.05);
}
.app-fvf-page-loading{
  position:absolute;inset:0;background:
    linear-gradient(110deg,#eef1f5 8%,#f7f9fb 18%,#eef1f5 33%);
  background-size:200% 100%;
  animation:fvfShimmer 1.5s ease-in-out infinite;
}
@keyframes fvfShimmer{
  0%{background-position:100% 0;}
  100%{background-position:-100% 0;}
}

.app-fvf-flash{
  position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none;
  z-index:15;
  transition:opacity .4s ease;
}
.app-fvf-flash.is-flashing{opacity:.6;transition:opacity 0s;}

.app-flipbook.is-fullscreen{
  position:fixed;inset:0;z-index:99999;
  background:#05070a;
  display:flex;align-items:center;justify-content:center;
}
.app-flipbook.is-fullscreen .app-fvf-stage{border-radius:0;min-height:100vh;width:100vw;}
.app-flipbook.is-fullscreen .app-fvf-book-wrap{padding:64px 56px 140px;}

.app-fvf-toolbar{
  position:absolute;
  z-index:20;
  display:flex;
  align-items:center;
  gap:1px;
  padding:7px;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(32,38,50,.82),rgba(18,22,30,.86));
  background-clip:padding-box;
  border:1px solid rgba(255,255,255,.09);
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.07) inset,
    0 -1px 0 rgba(0,0,0,.3) inset,
    0 20px 44px -14px rgba(0,0,0,.55),
    0 4px 14px -4px rgba(0,0,0,.35);
  opacity:1;
  transform:translateY(0);
  transition:transform .25s cubic-bezier(.22,1,.36,1),box-shadow .25s ease;
}
.app-fvf-toolbar.is-entering{
  opacity:0;
}
.app-fvf-toolbar.is-entering.is-visible{
  opacity:1;
  transition:opacity .5s cubic-bezier(.16,1,.3,1);
}

.app-fvf-stage[data-pos="bottom-center"] .app-fvf-toolbar{left:50%;bottom:26px;transform:translateX(-50%);}
.app-fvf-stage[data-pos="top-center"] .app-fvf-toolbar{left:50%;top:26px;transform:translateX(-50%);}
.app-fvf-stage[data-pos="bottom-floating"] .app-fvf-toolbar{left:50%;bottom:42px;transform:translateX(-50%);}
.app-fvf-stage[data-pos="top-floating"] .app-fvf-toolbar{left:50%;top:42px;transform:translateX(-50%);}
.app-fvf-stage[data-pos="bottom-left"] .app-fvf-toolbar{left:24px;bottom:26px;}
.app-fvf-stage[data-pos="bottom-right"] .app-fvf-toolbar{right:24px;bottom:26px;}

.app-fvf-btn{
  width:40px;height:40px;
  border-radius:50%;
  border:none;background:transparent;
  color:rgba(255,255,255,.78);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:background .2s cubic-bezier(.22,1,.36,1),color .2s ease,transform .15s cubic-bezier(.34,1.56,.64,1);
  flex-shrink:0;
  position:relative;
}
.app-fvf-btn svg{width:17px;height:17px;position:relative;z-index:1;}
.app-fvf-btn::before{
  content:'';position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle,rgba(40,157,235,.35),transparent 70%);
  opacity:0;transition:opacity .2s ease;
}
.app-fvf-btn:hover{color:#fff;transform:translateY(-1px);}
.app-fvf-btn:hover::before{opacity:1;}
.app-fvf-btn:active{transform:scale(.88);}
.app-fvf-btn:disabled{opacity:.28;cursor:default;}
.app-fvf-btn:disabled:hover{transform:none;}
.app-fvf-btn:disabled:hover::before{opacity:0;}
.app-fvf-btn.is-open{color:#fff;}
.app-fvf-btn.is-open::before{opacity:1;}

.app-fvf-tooltip{
  position:absolute;
  bottom:calc(100% + 11px);
  left:50%;
  transform:translateX(-50%) translateY(4px) scale(.92);
  transform-origin:bottom center;
  background:linear-gradient(180deg,#232935,#161b24);
  color:#fff;
  font-size:12.5px;
  font-weight:650;
  line-height:1;
  white-space:nowrap;
  padding:8px 12px;
  border-radius:9px;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  z-index:40;
  box-shadow:0 10px 24px -8px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.3),0 1px 0 rgba(255,255,255,.06) inset;
  transition:opacity .18s cubic-bezier(.22,1,.36,1),transform .18s cubic-bezier(.22,1,.36,1),visibility .18s;
}
.app-fvf-tooltip::before{
  content:'';
  position:absolute;
  bottom:-4px;
  left:50%;
  transform:translateX(-50%) rotate(45deg);
  width:8px;height:8px;
  background:#161b24;
  border-radius:2px;
}
.app-fvf-tooltip::after{
  content:attr(data-i18n-tip);
}
.app-fvf-btn:hover .app-fvf-tooltip{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0) scale(1);
  transition-delay:.35s;
}
.app-fvf-btn.is-tooltip-dismissed .app-fvf-tooltip{
  opacity:0 !important;
  visibility:hidden !important;
  transition-delay:0s !important;
}
.app-fvf-stage[data-pos^="top"] .app-fvf-tooltip{
  bottom:auto;
  top:calc(100% + 11px);
  transform-origin:top center;
}
.app-fvf-stage[data-pos^="top"] .app-fvf-tooltip::before{
  bottom:auto;
  top:-4px;
}

.app-fvf-divider{width:1px;height:22px;background:linear-gradient(rgba(255,255,255,0),rgba(255,255,255,.18),rgba(255,255,255,0));margin:0 5px;flex-shrink:0;}

.app-fvf-pagenum{
  display:flex;align-items:center;gap:7px;
  padding:0 12px;
  font-size:13.5px;font-weight:650;color:rgba(255,255,255,.94);
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.app-fvf-pagenum input{
  width:34px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);
  border-radius:8px;color:#fff;text-align:center;font-size:13.5px;font-weight:700;
  padding:6px 2px;font-family:inherit;transition:background .2s ease;
}
.app-fvf-pagenum input:focus{outline:none;background:rgba(255,255,255,.16);}
.app-fvf-pagenum span{color:rgba(255,255,255,.42);}

.app-fvf-menu,.app-fvf-pagelist,.app-fvf-sharepop{
  position:absolute;
  background:linear-gradient(180deg,rgba(30,36,48,.92),rgba(16,20,28,.95));
  backdrop-filter:blur(28px) saturate(180%);
  -webkit-backdrop-filter:blur(28px) saturate(180%);
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 24px 60px -16px rgba(0,0,0,.6),0 1px 0 rgba(255,255,255,.06) inset;
  opacity:0;visibility:hidden;
  transform:translateY(10px) scale(.95);
  transition:opacity .22s cubic-bezier(.22,1,.36,1),transform .22s cubic-bezier(.22,1,.36,1),visibility .22s;
  z-index:30;
}
.app-fvf-menu.is-open,.app-fvf-pagelist.is-open,.app-fvf-sharepop.is-open{
  opacity:1;visibility:visible;transform:translateY(0) scale(1);
}

.app-fvf-menu{
  bottom:calc(100% + 14px);
  border-radius:18px;
  padding:8px;
  min-width:224px;
  transform-origin:bottom left;
}
.app-fvf-stage[data-pos^="top"] .app-fvf-menu{bottom:auto;top:calc(100% + 14px);transform-origin:top left;}

.app-fvf-menu-item{
  display:flex;align-items:center;gap:12px;
  padding:11px 13px;border-radius:11px;
  color:rgba(255,255,255,.86);font-size:13.5px;font-weight:600;
  cursor:pointer;transition:background .16s ease;
  white-space:nowrap;
}
.app-fvf-menu-item:hover{background:rgba(255,255,255,.09);}
.app-fvf-menu-item svg{width:16px;height:16px;flex-shrink:0;opacity:.82;}
.app-fvf-menu-item.is-toggle-off svg{opacity:.38;}
.app-fvf-menu-divider{height:1px;background:rgba(255,255,255,.08);margin:6px 6px;}
.app-fvf-menu-check{margin-left:auto;width:15px;height:15px;opacity:0;color:var(--fb-primary-light);transition:opacity .15s ease;}
.app-fvf-menu-item.is-active .app-fvf-menu-check{opacity:1;}

.app-fvf-pagelist{
  bottom:calc(100% + 14px);
  border-radius:20px;
  padding:16px;
  width:296px;
  max-height:380px;
  overflow-y:auto;
  transform-origin:bottom;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:11px;
}
.app-fvf-stage[data-pos^="top"] .app-fvf-pagelist{bottom:auto;top:calc(100% + 14px);transform-origin:top;}
.app-fvf-pagelist::-webkit-scrollbar{width:6px;}
.app-fvf-pagelist::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:3px;}

.app-fvf-pagelist-item{
  cursor:pointer;border-radius:11px;overflow:hidden;
  border:2px solid transparent;transition:all .18s cubic-bezier(.22,1,.36,1);
  background:#fff;aspect-ratio:.72;position:relative;
}
.app-fvf-pagelist-item:hover{border-color:rgba(40,157,235,.7);transform:translateY(-3px);box-shadow:0 8px 18px -6px rgba(0,0,0,.4);}
.app-fvf-pagelist-item.is-current{border-color:var(--fb-primary);}
.app-fvf-pagelist-item.is-current::before{
  content:'';position:absolute;inset:0;box-shadow:0 0 0 3px rgba(40,157,235,.25) inset;pointer-events:none;
}
.app-fvf-pagelist-item img{width:100%;height:100%;object-fit:cover;display:block;}
.app-fvf-pagelist-item span{
  position:absolute;bottom:4px;right:6px;font-size:10.5px;font-weight:800;color:#fff;
  text-shadow:0 1px 4px rgba(0,0,0,.7);
}

.app-fvf-sharepop{
  bottom:calc(100% + 14px);
  border-radius:18px;
  padding:16px;
  width:272px;
  transform-origin:bottom;
}
.app-fvf-stage[data-pos^="top"] .app-fvf-sharepop{bottom:auto;top:calc(100% + 14px);transform-origin:top;}
.app-fvf-sharepop-row{
  display:flex;align-items:center;gap:10px;
  background:rgba(255,255,255,.06);border-radius:12px;padding:9px 12px;margin-bottom:12px;
  border:1px solid rgba(255,255,255,.06);
}
.app-fvf-sharepop-row input{
  flex:1;background:transparent;border:none;color:#fff;font-size:12.5px;outline:none;font-family:inherit;
  min-width:0;
}
.app-fvf-sharepop-copy{
  background:var(--fb-primary);border:none;color:#fff;border-radius:8px;padding:7px 13px;
  font-size:12px;font-weight:700;cursor:pointer;transition:all .2s ease;flex-shrink:0;
}
.app-fvf-sharepop-copy:hover{background:#1c85cc;transform:translateY(-1px);}
.app-fvf-sharepop-socials{display:flex;gap:8px;}
.app-fvf-sharepop-socials a{
  flex:1;height:40px;border-radius:11px;background:rgba(255,255,255,.06);
  display:flex;align-items:center;justify-content:center;color:#fff;
  border:1px solid rgba(255,255,255,.06);
  transition:all .2s cubic-bezier(.22,1,.36,1);
}
.app-fvf-sharepop-socials a:hover{background:rgba(255,255,255,.15);transform:translateY(-2px);}
.app-fvf-sharepop-socials svg{width:16px;height:16px;}

@media (max-width:720px){
  .app-fvf-stage{border-radius:16px;min-height:360px;}
  .app-fvf-book-wrap{padding:28px 20px 96px;}
  .app-fvf-toolbar{padding:6px;gap:0;}
  .app-fvf-btn{width:36px;height:36px;}
  .app-fvf-btn svg{width:15px;height:15px;}
  .app-fvf-pagenum{font-size:12.5px;padding:0 7px;}
  .app-fvf-pagenum input{width:28px;}
  .app-fvf-divider{margin:0 3px;}
  .app-fvf-pagelist{width:min(320px,calc(100vw - 32px));grid-template-columns:repeat(3,1fr);}
  .app-fvf-sharepop{width:min(272px,calc(100vw - 32px));}
  .app-fvf-menu{min-width:200px;}
}

@media (prefers-reduced-motion:reduce){
  .app-fvf-book-wrap,.app-fvf-loader,.app-fvf-toolbar,.app-fvf-menu,.app-fvf-pagelist,.app-fvf-sharepop{transition:none !important;animation:none !important;}
}