:root{--bg:#eaf0f6;--ink:#122033;--muted:#6c7b8c;--glass:rgba(255,255,255,.68);--line:rgba(255,255,255,.78);--shadow:0 18px 50px rgba(45,64,86,.16);--accent:#0f766e;--radius:24px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:radial-gradient(circle at 12% 4%,#fff 0,transparent 25%),radial-gradient(circle at 88% 12%,#d9f1ed 0,transparent 22%),linear-gradient(145deg,#eef3f8,#e6edf4)}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.16) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.28),transparent 70%)}
button,input,select,textarea{font:inherit}.glass{background:var(--glass);border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(22px) saturate(140%);-webkit-backdrop-filter:blur(22px) saturate(140%)}
.app-shell{min-height:100vh;padding:18px}.topbar{max-width:1440px;margin:0 auto;border-radius:22px;padding:12px 14px 12px 16px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:4}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#0f766e,#155e75);color:#fff;font-weight:800;box-shadow:inset 0 1px rgba(255,255,255,.35),0 10px 24px rgba(15,118,110,.25)}.brand strong,.brand span{display:block}.brand strong{font-size:13px;letter-spacing:.14em}.brand span{font-size:11px;color:var(--muted);margin-top:2px}.top-actions{display:flex;gap:8px}.btn{border:0;border-radius:14px;padding:10px 14px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:.2s ease}.btn:hover{transform:translateY(-1px)}.btn.primary{background:#102437;color:#fff;box-shadow:0 8px 24px rgba(16,36,55,.2)}.btn.ghost{background:rgba(255,255,255,.64);color:var(--ink);border:1px solid rgba(255,255,255,.85)}.icon{font-weight:900}
.viewer-wrap{max-width:1440px;margin:18px auto 0}.catalogue-tabs{width:max-content;max-width:100%;margin:0 auto 12px;padding:5px;border-radius:16px;display:flex;gap:4px;position:relative;z-index:3}.tab{border:0;background:transparent;color:#5a6979;padding:9px 18px;border-radius:12px;font-weight:800;cursor:pointer;white-space:nowrap}.tab.active{background:#fff;color:#102437;box-shadow:0 5px 15px rgba(48,64,82,.12)}
.book-card{border-radius:var(--radius);overflow:hidden}.book-head{padding:15px 18px 8px;display:flex;align-items:center;justify-content:space-between}.eyebrow{font-size:9px;letter-spacing:.18em;color:#8492a1;font-weight:800}.book-head h1{font-size:18px;margin:3px 0 0}.icon-btn{border:1px solid rgba(255,255,255,.9);background:rgba(255,255,255,.7);width:38px;height:38px;border-radius:12px;cursor:pointer;color:#25384a;font-weight:900}.icon-btn.mini{width:30px;height:30px;border-radius:9px}.viewer-body{display:flex;min-height:560px}.thumb-panel{width:0;opacity:0;overflow:hidden;border-right:1px solid rgba(152,169,185,.18);transition:.28s ease;background:rgba(249,251,253,.45)}.thumb-panel.open{width:210px;opacity:1}.thumb-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px}.thumb-list{height:510px;overflow:auto;padding:4px 10px 16px}.thumb-item{border:0;background:transparent;width:100%;padding:7px;border-radius:12px;cursor:pointer;text-align:left;color:var(--muted)}.thumb-item:hover,.thumb-item.active{background:rgba(255,255,255,.82);color:var(--ink)}.thumb-item img{display:block;width:100%;border-radius:7px;box-shadow:0 5px 14px rgba(44,58,74,.13);margin-bottom:5px}.thumb-item span{font-size:11px;font-weight:700}
.book-area{flex:1;min-width:0;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:18px 62px 24px;background:radial-gradient(circle at center,rgba(255,255,255,.8),rgba(239,244,249,.55) 55%,rgba(225,233,241,.36));perspective:2200px}.loading{position:absolute;z-index:20;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.86);padding:12px 16px;border-radius:14px;box-shadow:0 10px 30px rgba(52,69,89,.15);font-size:12px;font-weight:700}.loading.hidden{display:none}.spinner{width:18px;height:18px;border:2px solid #d7e0e8;border-top-color:#1c5062;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.book-stage{position:relative;width:min(100%,980px);aspect-ratio:1.414/1;display:flex;align-items:stretch;justify-content:center;transform:scale(1);transform-origin:center;transition:transform .2s ease;filter:drop-shadow(0 22px 30px rgba(31,49,66,.18))}.book-stage:after{content:"";position:absolute;left:50%;top:1%;bottom:1%;width:2px;transform:translateX(-1px);background:linear-gradient(to bottom,transparent,rgba(20,32,44,.24) 9%,rgba(20,32,44,.24) 90%,transparent);z-index:5;pointer-events:none}.page,.flip-page{width:50%;height:100%;background:#fff;overflow:hidden;position:relative}.page img,.flip-page img{width:100%;height:100%;object-fit:contain;background:#fff;display:block}.left-page{border-radius:12px 2px 2px 12px}.right-page{border-radius:2px 12px 12px 2px}.page.empty{background:linear-gradient(145deg,#f5f7fa,#fff)}.page.empty img{display:none}.flip-page{position:absolute;top:0;right:0;z-index:10;border-radius:2px 12px 12px 2px;transform-origin:left center;backface-visibility:hidden;display:none;box-shadow:-12px 0 24px rgba(23,39,54,.2)}.flip-page.active-next{display:block;animation:flipNext .62s cubic-bezier(.3,.2,.2,1) forwards}.flip-page.active-prev{display:block;left:0;right:auto;transform-origin:right center;border-radius:12px 2px 2px 12px;animation:flipPrev .62s cubic-bezier(.3,.2,.2,1) forwards}@keyframes flipNext{0%{transform:rotateY(0)}48%{box-shadow:-28px 0 35px rgba(23,39,54,.25)}100%{transform:rotateY(-180deg);opacity:.15}}@keyframes flipPrev{0%{transform:rotateY(0)}48%{box-shadow:28px 0 35px rgba(23,39,54,.25)}100%{transform:rotateY(180deg);opacity:.15}}
.edge-nav{position:absolute;z-index:12;top:50%;transform:translateY(-50%);border:1px solid rgba(255,255,255,.8);background:rgba(255,255,255,.72);backdrop-filter:blur(10px);width:42px;height:64px;border-radius:14px;font-size:32px;color:#44576a;cursor:pointer;box-shadow:0 10px 25px rgba(57,73,90,.12);opacity:.9}.edge-nav:hover{background:#fff}.edge-nav.left{left:14px}.edge-nav.right{right:14px}.edge-nav:disabled{opacity:.25;cursor:not-allowed}
.toolbar{min-height:62px;padding:9px 14px 14px;display:flex;align-items:center;justify-content:center;gap:6px;border-top:1px solid rgba(255,255,255,.7)}.tool-btn{height:38px;min-width:38px;border:1px solid rgba(255,255,255,.95);background:rgba(255,255,255,.65);border-radius:11px;color:#294054;font-size:20px;font-weight:700;cursor:pointer}.tool-btn.wide{padding:0 12px;font-size:12px}.tool-btn:disabled{opacity:.35}.page-status{display:flex;align-items:baseline;gap:4px;min-width:90px;justify-content:center}.page-status strong{font-size:12px}.page-status span,.zoom-label{font-size:11px;color:var(--muted)}.zoom-label{min-width:44px;text-align:center;font-weight:700}.divider{width:1px;height:26px;background:rgba(120,139,157,.22);margin:0 5px}.hint{text-align:center;color:#788797;font-size:11px;margin:10px 0 22px}
.embed-modal{border:0;padding:0;background:transparent;width:min(620px,calc(100% - 28px))}.embed-modal::backdrop{background:rgba(13,29,44,.42);backdrop-filter:blur(7px)}.modal-card{border-radius:24px;padding:18px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start}.modal-head h2{margin:3px 0 0;font-size:20px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.field-grid label,.code-label{font-size:11px;font-weight:800;color:#586a7a}.field-grid select,.field-grid input,textarea{width:100%;margin-top:6px;border:1px solid rgba(117,137,154,.2);background:rgba(255,255,255,.78);border-radius:12px;padding:11px 12px;color:var(--ink);outline:none}.input-suffix{display:flex;align-items:center;position:relative}.input-suffix span{position:absolute;right:12px;top:17px;color:#82909d;font-size:11px}.input-suffix input{padding-right:36px}.checks{display:flex;flex-wrap:wrap;gap:9px 14px;margin:14px 0}.checks label{font-size:11px;color:#526575}.checks input{accent-color:#12384b}.code-label{display:block}textarea{min-height:118px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;line-height:1.5}.modal-actions{margin-top:12px}.btn.full{width:100%}.copy-note{font-size:10px;color:#7c8996;text-align:center;margin:9px 0 0}
.embed-mode{min-height:100vh;padding:0}.embed-shell{min-height:100vh;padding:10px}.embed-top{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:8px}.catalogue-tabs.compact{margin:0}.embed-card{max-width:1400px;margin:0 auto}.embed-book-head{padding-top:12px}.embed-card .viewer-body{min-height:480px}
@media (max-width:760px){.app-shell{padding:10px}.topbar{border-radius:18px}.hide-sm{display:none}.viewer-wrap{margin-top:10px}.catalogue-tabs{width:100%;justify-content:center}.tab{flex:1;padding:9px 8px}.book-card{border-radius:20px}.book-head{padding:12px 13px 7px}.book-head h1{font-size:15px}.viewer-body{min-height:500px}.book-area{padding:14px 48px 18px}.book-stage{width:min(100%,410px);aspect-ratio:.707/1;display:block}.book-stage:after{display:none}.page{width:100%;height:100%;border-radius:10px}.left-page{display:block}.right-page{display:none}.flip-page{width:100%;left:0;right:0;border-radius:10px;transform-origin:left center}.flip-page.active-prev{left:0;transform-origin:right center;border-radius:10px}.edge-nav{width:34px;height:58px;font-size:26px}.edge-nav.left{left:7px}.edge-nav.right{right:7px}.toolbar{gap:4px;padding-left:8px;padding-right:8px}.tool-btn{min-width:34px;height:36px}.page-status{min-width:68px}.divider{margin:0 2px}.thumb-panel.open{position:absolute;left:0;top:0;bottom:0;width:180px;z-index:30;background:rgba(248,251,253,.97);box-shadow:10px 0 25px rgba(39,57,74,.13)}.thumb-list{height:450px}.field-grid{grid-template-columns:1fr}.embed-shell{padding:5px}.embed-top{justify-content:space-between}.embed-top .catalogue-tabs{flex:1}.embed-card .viewer-body{min-height:460px}}
@media (max-width:420px){.brand span{display:none}.brand-mark{width:36px;height:36px}.topbar{padding:9px 10px}.btn{padding:9px 10px}.book-area{padding-left:42px;padding-right:42px}.toolbar .divider:nth-of-type(2){display:none}.tool-btn.wide{padding:0 9px}.hint{padding:0 12px}.embed-top{gap:5px}.embed-top .btn{padding:9px}}

/* =========================================================
   v2 — Interactive mouse-grab page flip / page curl
   ========================================================= */
.book-stage{
  transform-style:preserve-3d;
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
  cursor:default;
}
.book-stage img{
  -webkit-user-drag:none;
  user-select:none;
  pointer-events:none;
}
.book-stage.hover-next,.book-stage.hover-prev{cursor:grab}
.book-stage.dragging{cursor:grabbing}
.book-stage.dragging *{cursor:grabbing!important}

/* Edge affordance when the pointer reaches a grabbable side */
.page::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:42px;
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease;
  z-index:3;
}
.book-stage.hover-next .right-page::after{
  right:0;
  opacity:1;
  background:linear-gradient(to left,rgba(37,57,73,.18),rgba(255,255,255,.08) 42%,transparent);
  box-shadow:inset -1px 0 rgba(255,255,255,.9);
}
.book-stage.hover-prev .left-page::after{
  left:0;
  opacity:1;
  background:linear-gradient(to right,rgba(37,57,73,.18),rgba(255,255,255,.08) 42%,transparent);
  box-shadow:inset 1px 0 rgba(255,255,255,.9);
}

/* The turning sheet has two true faces so page content stays readable after 90deg. */
.flip-page{
  display:none;
  position:absolute;
  top:0;
  right:auto;
  z-index:14;
  width:50%;
  height:100%;
  overflow:visible;
  background:transparent;
  transform-style:preserve-3d;
  backface-visibility:visible;
  will-change:transform,box-shadow;
  pointer-events:none;
  opacity:1;
}
.flip-page.visible{display:block}
.flip-page.turn-next{
  left:50%;
  transform-origin:left center;
  border-radius:2px 12px 12px 2px;
}
.flip-page.turn-prev{
  left:0;
  transform-origin:right center;
  border-radius:12px 2px 2px 12px;
}
.flip-face{
  position:absolute;
  inset:0;
  overflow:hidden;
  background:#fff;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  transform-style:preserve-3d;
}
.turn-next .flip-face{border-radius:2px 12px 12px 2px}
.turn-prev .flip-face{border-radius:12px 2px 2px 12px}
.flip-face img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}
.flip-front{transform:rotateY(0deg) translateZ(.25px)}
.flip-back{transform:rotateY(180deg) translateZ(.25px)}
.flip-face.empty{background:linear-gradient(145deg,#f5f7fa,#fff)}
.flip-face.empty img{display:none}

/* Dynamic paper shading driven by JS custom properties. */
.flip-face::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:var(--curl,0);
  mix-blend-mode:multiply;
}
.turn-next .flip-front::after{
  background:linear-gradient(to left,rgba(7,19,29,var(--edgeShade,.12)),transparent 30%,rgba(255,255,255,.08) 76%,rgba(14,31,43,.08));
}
.turn-next .flip-back::after{
  background:linear-gradient(to right,rgba(7,19,29,var(--edgeShade,.12)),transparent 30%,rgba(255,255,255,.08) 76%,rgba(14,31,43,.08));
}
.turn-prev .flip-front::after{
  background:linear-gradient(to right,rgba(7,19,29,var(--edgeShade,.12)),transparent 30%,rgba(255,255,255,.08) 76%,rgba(14,31,43,.08));
}
.turn-prev .flip-back::after{
  background:linear-gradient(to left,rgba(7,19,29,var(--edgeShade,.12)),transparent 30%,rgba(255,255,255,.08) 76%,rgba(14,31,43,.08));
}

/* Extra centre shadow makes the sheet feel attached to a book spine. */
.book-stage.dragging::after{
  width:4px;
  box-shadow:0 0 18px rgba(18,32,44,.24);
}

@media (max-width:760px){
  .book-stage.hover-next .right-page::after{display:none}
  .book-stage.hover-next .left-page::after{
    left:auto;
    right:0;
    opacity:1;
    background:linear-gradient(to left,rgba(37,57,73,.18),rgba(255,255,255,.08) 42%,transparent);
    box-shadow:inset -1px 0 rgba(255,255,255,.9);
  }
  .book-stage.hover-prev .left-page::after{
    left:0;
    right:auto;
    opacity:1;
    background:linear-gradient(to right,rgba(37,57,73,.18),rgba(255,255,255,.08) 42%,transparent);
    box-shadow:inset 1px 0 rgba(255,255,255,.9);
  }
  .flip-page,
  .flip-page.turn-next,
  .flip-page.turn-prev{
    width:100%;
    left:0;
    right:0;
    border-radius:10px;
  }
  .flip-page.turn-next{transform-origin:left center}
  .flip-page.turn-prev{transform-origin:right center}
  .turn-next .flip-face,.turn-prev .flip-face{border-radius:10px}
}

/* =========================================================
   v3 — Realistic StPageFlip engine + lazy PDF rendering
   ========================================================= */
.book-stage{
  --page-ratio:.7071;
  --spread-ratio:1.4142;
  position:relative;
  width:min(100%,1180px);
  aspect-ratio:var(--spread-ratio);
  margin:auto;
  overflow:visible;
  perspective:2200px;
  cursor:grab;
  touch-action:pan-y;
  transform:scale(1);
  transform-origin:center center;
  transition:transform .18s ease;
  isolation:isolate;
}
.book-stage:active,.book-stage.is-folding{cursor:grabbing}
.book-stage::after{
  content:"";
  position:absolute;
  z-index:30;
  left:50%;top:2%;bottom:2%;width:1px;
  pointer-events:none;
  background:linear-gradient(to bottom,transparent,rgba(18,33,47,.18) 12%,rgba(18,33,47,.26) 50%,rgba(18,33,47,.18) 88%,transparent);
  box-shadow:0 0 18px rgba(18,33,47,.18);
  opacity:.8;
}
.flipbook-root{
  position:absolute!important;
  inset:0;
  width:100%!important;
  height:100%!important;
  transform-style:preserve-3d;
}
.flipbook-root .stf__parent{
  position:absolute!important;
  inset:0!important;
  margin:auto!important;
  transition:transform .18s ease;
  filter:drop-shadow(0 18px 28px rgba(26,42,57,.18));
}
.pf-page{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:0;
  box-shadow:inset 0 0 0 1px rgba(24,40,54,.035);
}
.pf-page img{
  position:absolute;
  inset:0;
  width:100%;height:100%;
  object-fit:contain;
  background:#fff;
  display:block;
  opacity:0;
  transition:opacity .18s ease;
  pointer-events:none;
  -webkit-user-drag:none;
}
.pf-page.rendered img{opacity:1}
.page-placeholder{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#fbfcfd,#f0f4f7);
  color:#a6b1ba;
  font-size:14px;
  font-weight:800;
  transition:opacity .18s ease;
}
.page-placeholder span{
  width:36px;height:36px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.75);
  box-shadow:0 5px 18px rgba(33,51,68,.08);
}
.pf-page.rendered .page-placeholder{opacity:0}
/* Hide obsolete v2 page layers if an older browser cached markup. */
.left-page,.right-page,.flip-page{display:none!important}

.loading{z-index:80}
.reader-note{
  position:absolute;left:50%;bottom:18px;z-index:90;
  transform:translate(-50%,14px);
  max-width:min(90%,620px);
  padding:10px 14px;border-radius:12px;
  background:rgba(26,42,57,.9);color:white;
  font-size:11px;line-height:1.45;
  opacity:0;pointer-events:none;transition:.2s ease;
  box-shadow:0 10px 25px rgba(17,29,40,.2)
}
.reader-note.show{opacity:1;transform:translate(-50%,0)}
.thumb-frame{
  position:relative;
  width:100%;aspect-ratio:var(--page-ratio,.7071);
  border-radius:7px;overflow:hidden;background:#f2f5f7;
}
.thumb-frame img{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:.15s ease}
.thumb-placeholder{position:absolute;inset:0;display:grid!important;place-items:center;color:#9aa7b2;font-size:13px!important;font-weight:800}
.thumb-item.thumb-rendered .thumb-frame img{opacity:1}
.thumb-item.thumb-rendered .thumb-placeholder{opacity:0}

@media (max-width:760px){
  .book-stage{
    width:min(100%,430px);
    aspect-ratio:var(--page-ratio);
  }
  .book-stage::after{display:none}
  .flipbook-root .stf__parent{filter:drop-shadow(0 14px 22px rgba(26,42,57,.16))}
}

/* v4: lỗi tải phải kết thúc rõ ràng, không spinner vô tận */
.reader-error{position:absolute;z-index:95;left:50%;top:50%;transform:translate(-50%,-50%);width:min(520px,calc(100% - 40px));padding:24px;border:1px solid rgba(255,255,255,.85);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 24px 70px rgba(36,54,72,.18);backdrop-filter:blur(20px);text-align:center;color:#172435}
.reader-error strong{display:block;font-size:18px;margin-bottom:8px}.reader-error p{margin:0 0 16px;color:#607080;line-height:1.5;word-break:break-word}.reader-error>div{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.reader-error button,.reader-error a{border:0;border-radius:12px;padding:10px 14px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none}.reader-error button{background:#183d4b;color:#fff}.reader-error a{background:#eef3f6;color:#183d4b}

/* =========================================================
   v4.1 — Fix static centre seam + anti-alias hairlines
   The page-flip engine already paints its own moving shadows.
   A fixed spine line looks wrong while a sheet is being folded.
   ========================================================= */
.book-stage::after{
  content:none!important;
  display:none!important;
  background:none!important;
  box-shadow:none!important;
}
.pf-page{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
  transform:translateZ(0);
}
.pf-page img{
  outline:0!important;
  border:0!important;
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
}
.flipbook-root .stf__item,
.flipbook-root .stf__block,
.flipbook-root .stf__wrapper,
.flipbook-root canvas{
  outline:0!important;
  border:0!important;
}


/* =========================================================
   v4.2 — Seamless iframe embed
   The embed becomes a transparent, auto-height section instead of a
   second "website card" living inside the host website.
   ========================================================= */
html.seamless-embed,
html.seamless-embed body,
body.seamless-mode{
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
  background:transparent!important;
  background-image:none!important;
}
body.seamless-mode::before{content:none!important;display:none!important}
.seamless-mode .embed-shell{
  min-height:0!important;
  padding:0!important;
  background:transparent!important;
}
.seamless-mode .embed-top{
  margin:0 0 10px!important;
  padding:0 2px;
  position:relative;
  z-index:40;
}
.seamless-mode .catalogue-tabs.compact{
  margin:0;
  box-shadow:0 7px 20px rgba(36,52,68,.09);
  background:rgba(244,247,250,.78);
  border:1px solid rgba(220,228,235,.82);
  backdrop-filter:blur(12px) saturate(130%);
  -webkit-backdrop-filter:blur(12px) saturate(130%);
}
.seamless-mode .embed-top .btn.primary{
  box-shadow:0 7px 18px rgba(16,36,55,.14);
}
.seamless-mode .embed-card{
  max-width:none!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  overflow:visible!important;
}
.seamless-mode .embed-book-head{
  position:absolute;
  right:8px;
  top:62px;
  z-index:55;
  padding:0!important;
  pointer-events:none;
}
.seamless-mode .embed-book-head>div{display:none!important}
.seamless-mode .embed-book-head .icon-btn{pointer-events:auto}
.seamless-mode .viewer-body{
  min-height:0!important;
  height:auto!important;
  overflow:visible!important;
  background:transparent!important;
}
.seamless-mode .book-area{
  min-height:0!important;
  height:auto!important;
  overflow:visible!important;
  padding:8px 54px 12px!important;
  background:transparent!important;
}
.seamless-mode .book-stage{
  width:min(100%,1180px)!important;
  max-height:none!important;
  filter:none!important;
}
.seamless-mode .flipbook-root .stf__parent{
  filter:drop-shadow(0 16px 24px rgba(26,42,57,.14));
}
.seamless-mode .edge-nav{
  background:rgba(255,255,255,.78);
  border:1px solid rgba(211,220,228,.82);
  box-shadow:0 8px 22px rgba(42,59,75,.10);
}
.seamless-mode .toolbar{
  width:max-content;
  max-width:calc(100% - 16px);
  min-height:0!important;
  margin:4px auto 0;
  padding:6px 8px!important;
  border:1px solid rgba(214,223,231,.82)!important;
  border-radius:15px;
  background:rgba(247,249,251,.76);
  box-shadow:0 8px 24px rgba(42,59,75,.08);
  backdrop-filter:blur(12px) saturate(130%);
  -webkit-backdrop-filter:blur(12px) saturate(130%);
}
.seamless-mode .thumb-panel{
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  z-index:70;
  border:1px solid rgba(214,223,231,.82);
  border-radius:16px;
  box-shadow:0 16px 35px rgba(42,59,75,.14);
  background:rgba(250,252,253,.96);
}
.seamless-mode .thumb-panel.open{width:210px}
.field-disabled{opacity:.45}
.field-disabled input{cursor:not-allowed}
.recommended-check{font-weight:800!important;color:#17394a!important}

@media (max-width:760px){
  .seamless-mode .embed-top{gap:6px;margin-bottom:7px!important}
  .seamless-mode .embed-top .catalogue-tabs{flex:1}
  .seamless-mode .book-area{padding:6px 42px 8px!important}
  .seamless-mode .embed-book-head{top:57px;right:4px}
  .seamless-mode .toolbar{margin-top:2px;padding:5px 6px!important}
  .seamless-mode .flipbook-root .stf__parent{filter:drop-shadow(0 12px 18px rgba(26,42,57,.13))}
}
@media (max-width:420px){
  .seamless-mode .book-area{padding-left:36px!important;padding-right:36px!important}
  .seamless-mode .embed-top .btn{padding:8px 9px}
}
