.mb-reader{max-width:900px;margin:30px auto;background:#fffdf9;border:1px solid #e7e0da;border-radius:16px;overflow:hidden;box-shadow:0 10px 35px #0001;font-family:Georgia,serif}.mb-reader header{padding:22px 30px;border-bottom:1px solid #eee5de;display:flex;justify-content:space-between}.mb-reader header span{font:800 10px Arial;color:#ff6b35;letter-spacing:2px}.mb-reader h1{font-size:20px;margin:5px 0}.mb-reader header button{border:1px solid #ddd;background:#fff;border-radius:8px;padding:8px}.mb-reader main{padding:55px 75px;min-height:520px;font-size:19px;line-height:1.85;color:#282522}.mb-reader footer{padding:15px 25px;border-top:1px solid #eee5de;display:flex;justify-content:space-between;font:12px Arial}.mb-reader footer button{border:0;background:transparent;color:#ff6b35;font-weight:700}.mb-reader.dark{background:#1e1d1b;border-color:#383431}.mb-reader.dark main{color:#eee7df}.mb-reader.dark h1{color:#eee}.mb-access{padding:30px;background:#fff7f3;border-left:4px solid #ff6b35}.mb-library{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.mb-book{background:#fff;border:1px solid #e5e5e5;border-radius:13px;overflow:hidden;text-decoration:none;color:#222}.mb-book img,.mb-cover{width:100%;height:220px;object-fit:cover}.mb-cover{display:grid;place-items:center;background:#ffe2d7;color:#ff6b35;font-size:65px;font-weight:900}.mb-book>div:last-child{padding:14px}.mb-book small{color:#888}.mb-book h3{font-size:16px}.mb-book p{font-size:12px;color:#777}.mb-book strong{color:#ff6b35;font-size:12px}.mb-author-form{max-width:700px;padding:25px;border:1px solid #e5e5e5;border-radius:14px}.mb-author-form label{display:flex;flex-direction:column;gap:6px;margin:14px 0;font-weight:700}.mb-author-form input,.mb-author-form textarea{padding:10px;border:1px solid #ddd;border-radius:8px}.mb-author-form button{background:#ff6b35;color:#fff;border:0;border-radius:9px;padding:11px 17px;font-weight:700}.mb-author-options{display:flex;gap:20px;margin:12px 0}.mb-author-options label{display:block;font-weight:500}.mb-author-options input{width:auto}@media(max-width:800px){.mb-library{grid-template-columns:repeat(2,1fr)}.mb-reader main{padding:35px 22px}}
.mb-pdf-reader .mb-pdf-frame{height:78vh;min-height:520px;background:#202124;padding:0}.mb-pdf-reader iframe{width:100%;height:100%;border:0;display:block}.mb-pdf-page-marker{display:none}

.mb-book-product{max-width:1120px;margin:50px auto 35px;display:grid;grid-template-columns:330px 1fr;gap:55px;align-items:start;padding:0 25px}.mb-book-product-cover{background:#f1f2f3;border-radius:20px;min-height:440px;display:flex;align-items:center;justify-content:center;overflow:hidden}.mb-book-product-cover img{width:100%;height:auto;display:block}.mb-cover-big{font-size:120px;font-weight:900;color:#ff6b35}.mb-book-kicker{font-size:11px;letter-spacing:2px;font-weight:900;color:#ff6b35}.mb-book-product-info h1{font-size:42px;line-height:1.05;margin:10px 0}.mb-book-author{color:#667077}.mb-book-meta{display:flex;gap:15px;flex-wrap:wrap;margin:20px 0;color:#667077;font-size:13px}.mb-book-synopsis{font-size:16px;line-height:1.75;color:#333}.mb-book-buy{margin-top:28px;padding:20px;border:1px solid #eee;border-radius:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.mb-book-buy strong{font-size:25px;margin-right:auto}.mb-buy-btn,.mb-read-btn{padding:13px 18px;border-radius:10px;text-decoration:none;font-weight:800}.mb-buy-btn{background:#ff6b35;color:#fff}.mb-read-btn{background:#202326;color:#fff}.mb-unavailable{color:#888}.mb-reader-anchor{max-width:1120px;margin:0 auto;padding:0 25px}.mb-book-edit-form{margin:22px 0;padding:20px;border:1px solid #eee;border-radius:14px}.mb-book-edit-fields{display:grid;grid-template-columns:1fr 280px;gap:18px;margin-bottom:15px}.mb-book-edit-fields label,.mb-admin-synopsis{display:block;font-weight:700}.mb-book-edit-fields textarea,.mb-book-edit-fields input,.mb-admin-synopsis textarea,.mb-upload-synopsis textarea{display:block;width:100%;margin-top:7px;border:1px solid #ddd;border-radius:9px;padding:10px}.mb-upload-synopsis{width:100%;font-size:10px;font-weight:700}.mb-upload-synopsis span,.mb-admin-synopsis span{color:#888;font-weight:400}@media(max-width:700px){.mb-book-product{grid-template-columns:1fr;gap:25px;margin-top:25px}.mb-book-product-cover{min-height:280px}.mb-book-product-info h1{font-size:31px}.mb-book-edit-fields{grid-template-columns:1fr}}

body.mb-reading-mode{overflow:hidden}
.mb-pdf-fullscreen{position:fixed!important;inset:0!important;z-index:999999!important;width:100vw!important;height:100dvh!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;background:#17191b!important;box-shadow:none!important;display:flex!important;flex-direction:column!important}
.mb-pdf-fullscreen header{flex:0 0 auto;background:#17191b;color:#fff;border-bottom:1px solid #333;padding:14px 22px;align-items:center}
.mb-pdf-fullscreen header h1{color:#fff;max-width:60vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-pdf-fullscreen .mb-reader-tools{display:flex;gap:8px;align-items:center}
.mb-pdf-fullscreen .mb-reader-tools button,.mb-pdf-fullscreen .mb-pdf-open{color:#fff;background:#292d31;border:1px solid #444;border-radius:9px;padding:9px 12px;text-decoration:none;font:700 12px Arial}
.mb-pdf-fullscreen .mb-pdf-exit{font-size:22px;line-height:1;min-width:40px}
.mb-pdf-fullscreen .mb-pdf-frame{padding:0!important;min-height:0!important;height:auto!important;flex:1 1 auto;background:#202124;overflow:hidden}
.mb-pdf-fullscreen .mb-pdf-frame object,.mb-pdf-fullscreen .mb-pdf-frame iframe{display:block;width:100%;height:100%;border:0;background:#202124}
.mb-pdf-fullscreen footer{flex:0 0 auto;background:#17191b;color:#ddd;border-color:#333;gap:12px}
.mb-pdf-fullscreen footer span{font-weight:400;color:#aaa}
@media(max-width:700px){
 .mb-pdf-fullscreen header{padding:10px 12px}.mb-pdf-fullscreen header h1{font-size:15px;max-width:48vw}.mb-pdf-fullscreen header span{font-size:8px;letter-spacing:1.4px}.mb-pdf-fullscreen .mb-reader-tools{gap:5px}.mb-pdf-fullscreen .mb-reader-tools button,.mb-pdf-fullscreen .mb-pdf-open{padding:8px 9px;font-size:11px}.mb-pdf-fullscreen footer{padding:9px 12px;font-size:10px}.mb-pdf-fullscreen footer span{display:none}
}

.mb-pdf-frame{position:relative}.mb-pdf-iframe{width:100%;height:100%;min-height:0;border:0;display:block;background:#fff}.mb-pdf-fullscreen .mb-pdf-iframe{height:100%;width:100%}
/* Mayombe Books 1.8.3 — robust native PDF surface */
.mb-pdf-fullscreen .mb-pdf-object{display:block;width:100%;height:100%;border:0;background:#202124}
.mb-pdf-fullscreen .mb-pdf-object .mb-pdf-iframe{width:100%;height:100%;border:0;display:block}
.mb-pdf-fallback{display:none;position:absolute;inset:auto 20px 20px 20px;z-index:3;padding:14px 16px;border-radius:12px;background:#fff;color:#222;box-shadow:0 8px 30px #0004;font:600 13px Arial}
.mb-pdf-fallback a{display:inline-block;margin-left:12px;color:#ff6b35;font-weight:800;text-decoration:none}
@media(max-width:700px){.mb-pdf-fallback{inset:auto 10px 10px 10px}.mb-pdf-fallback a{display:block;margin:8px 0 0}}

/* 1.8.4 — Mayombe PDF.js viewer */
.mb-pdf-fullscreen .mb-pdf-frame{position:relative;display:flex;flex-direction:column;flex:1 1 auto;height:auto!important;min-height:0!important;overflow:hidden;padding:0!important;background:#151719!important}
.mb-pdf-pages{flex:1 1 auto;overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:22px 12px 32px;scroll-behavior:smooth}
.mb-pdf-page{background:#fff;box-shadow:0 8px 30px #0005;max-width:calc(100vw - 24px);min-height:120px}
.mb-pdf-page canvas{display:block;max-width:100%;height:auto}
.mb-pdf-loading{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:700 16px Arial;z-index:4}
.mb-pdf-error{position:absolute;inset:20px;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#222;background:#fff;border-radius:16px;padding:24px;font:14px Arial}
.mb-pdf-error[hidden]{display:none}
.mb-pdf-error-text{max-width:600px;color:#666}
.mb-pdf-error .mb-pdf-open{display:inline-block;background:#ff6b35;color:#fff;padding:12px 16px;border-radius:10px;text-decoration:none;font-weight:800}
.mb-pdf-fullscreen footer{align-items:center;justify-content:center;gap:18px;flex-wrap:wrap}
.mb-pdf-fullscreen footer button{color:#fff;background:#292d31;border:1px solid #444;border-radius:9px;padding:9px 13px;font:700 12px Arial;cursor:pointer}
.mb-pdf-fullscreen footer button:disabled{opacity:.35;cursor:not-allowed}
.mb-pdf-zoom{display:flex;align-items:center;gap:6px}
.mb-pdf-zoom span{min-width:48px;text-align:center}
@media(max-width:700px){.mb-pdf-pages{padding:8px 5px 20px}.mb-pdf-page{max-width:calc(100vw - 10px)}.mb-pdf-fullscreen footer{gap:6px;padding:7px 6px}.mb-pdf-fullscreen footer button{padding:8px 9px}.mb-pdf-fullscreen .mb-pdf-frame{min-height:0}}

/* 1.8.6 — dedicated reader page / cache-safe access */
body:has(.mb-pdf-fullscreen){overflow:hidden!important}
.mb-reader-standalone{margin:0!important}

/* 1.8.6 — standalone reader: keep the book reader independent from theme chrome */
body:has(.mb-reader-standalone) #masthead,
body:has(.mb-reader-standalone) header.site-header,
body:has(.mb-reader-standalone) .site-header,
body:has(.mb-reader-standalone) .site-footer,
body:has(.mb-reader-standalone) footer.site-footer { display:none!important; }
body:has(.mb-reader-standalone) { margin:0!important; padding:0!important; background:#151719!important; }
body:has(.mb-reader-standalone) .site-content,
body:has(.mb-reader-standalone) .content-area,
body:has(.mb-reader-standalone) .entry-content,
body:has(.mb-reader-standalone) main.site-main { margin:0!important; padding:0!important; max-width:none!important; width:100%!important; }
.mb-reader-standalone { position:fixed!important; inset:0!important; z-index:2147483000!important; }


/* 1.8.8 — PDF.js Viewer integration: the third-party PDF.js Viewer is now the sole PDF renderer. */
body:has(.mb-pdfjs-reader){margin:0!important;padding:0!important;background:#151719!important;overflow:hidden!important}
body:has(.mb-pdfjs-reader) #masthead,
body:has(.mb-pdfjs-reader) header.site-header,
body:has(.mb-pdfjs-reader) .site-header,
body:has(.mb-pdfjs-reader) .site-footer,
body:has(.mb-pdfjs-reader) footer.site-footer,
body:has(.mb-pdfjs-reader) .elementor-location-header,
body:has(.mb-pdfjs-reader) .elementor-location-footer{display:none!important}
body:has(.mb-pdfjs-reader) .site-content,
body:has(.mb-pdfjs-reader) .content-area,
body:has(.mb-pdfjs-reader) .entry-content,
body:has(.mb-pdfjs-reader) main.site-main{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
.mb-pdfjs-reader{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100dvh!important;background:#151719!important;display:flex!important;flex-direction:column!important;margin:0!important;padding:0!important}
.mb-pdfjs-topbar{height:52px;min-height:52px;box-sizing:border-box;background:#17191b;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 20px;border-bottom:1px solid #333;font-family:Arial,sans-serif;gap:14px}
.mb-pdfjs-title{display:flex;align-items:center;gap:12px;min-width:0}.mb-pdfjs-title span{font-size:9px;font-weight:900;letter-spacing:2px;color:#ff6b35}.mb-pdfjs-title strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mb-pdfjs-back{color:#fff;text-decoration:none;background:#292d31;border:1px solid #444;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:700;white-space:nowrap}.mb-pdfjs-viewer{flex:1 1 auto;min-height:0;width:100%;height:calc(100dvh - 52px);overflow:hidden;background:#202124}.mb-pdfjs-viewer .pdfjs-viewer,.mb-pdfjs-viewer .pdfjs-viewer-container,.mb-pdfjs-viewer iframe{width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;border:0!important;display:block!important}
/* The plugin may wrap the viewer in its own fullscreen link/container. Keep it inside our reader surface. */
.mb-pdfjs-viewer>div{max-width:none!important}.mb-pdfjs-viewer .pdfjs-fullscreen{z-index:2}
@media(max-width:700px){.mb-pdfjs-topbar{height:46px;min-height:46px;padding:0 9px 0 11px}.mb-pdfjs-title{gap:7px}.mb-pdfjs-title span{font-size:7px;letter-spacing:1.4px}.mb-pdfjs-title strong{font-size:13px}.mb-pdfjs-back{padding:6px 8px;font-size:10px}.mb-pdfjs-viewer{height:calc(100dvh - 46px)}}


/* Mayombe Books 2.0 — dedicated PDF reading surface */
.mb-pdfjs-reader{position:fixed!important;inset:0!important;z-index:999999!important;background:#f7f7f5!important;width:100vw!important;height:100vh!important;margin:0!important;padding:0!important;overflow:hidden!important;}
.mb-pdfjs-reader .mb-pdfjs-topbar{height:68px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 20px;background:#171717;color:#fff;}
.mb-pdfjs-reader .mb-pdfjs-viewer{height:calc(100vh - 68px)!important;width:100%;overflow:hidden;background:#2b2b2b;}
.mb-pdfjs-reader .mb-pdfjs-viewer iframe{width:100%!important;height:100%!important;border:0!important;display:block;}
.mb-pdfjs-reader .mb-pdfjs-title span{display:block;color:#ff6b32;font-size:10px;font-weight:800;letter-spacing:.18em;margin-bottom:2px;}
.mb-pdfjs-reader .mb-pdfjs-title strong{display:block;max-width:65vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;}
.mb-pdfjs-reader .mb-pdfjs-back{color:#fff!important;text-decoration:none!important;border:1px solid rgba(255,255,255,.25);border-radius:10px;padding:9px 13px;font-weight:700;font-size:13px;}
@media(max-width:640px){.mb-pdfjs-reader .mb-pdfjs-topbar{height:58px;padding:8px 12px}.mb-pdfjs-reader .mb-pdfjs-viewer{height:calc(100vh - 58px)!important}.mb-pdfjs-reader .mb-pdfjs-back{font-size:0;padding:9px 11px}.mb-pdfjs-reader .mb-pdfjs-back:after{content:'×';font-size:22px;line-height:1}.mb-pdfjs-reader .mb-pdfjs-title strong{max-width:62vw;font-size:14px}}
.mb-pdfjs-reader{position:relative;width:100%;height:100vh;background:#111;overflow:hidden}.mb-pdfjs-topbar{height:74px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 22px;background:#171717;color:#fff;box-sizing:border-box}.mb-pdfjs-title{display:flex;flex-direction:column;gap:3px;min-width:0}.mb-pdfjs-title span{font-size:10px;letter-spacing:3px;color:#ff6b2c;font-weight:800}.mb-pdfjs-title strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mb-pdfjs-back{color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.2);padding:10px 15px;border-radius:9px}.mb-pdfjs-viewer{height:calc(100vh - 74px);width:100%;background:#2a2a2a}.mb-pdfjs-viewer iframe{width:100%!important;height:100%!important;border:0!important}.mb-pdfjs-viewer .pdfjs-viewer-container{height:100%!important}@media(max-width:600px){.mb-pdfjs-topbar{height:60px;padding:0 12px}.mb-pdfjs-title strong{font-size:14px}.mb-pdfjs-back{padding:8px 10px;font-size:13px}.mb-pdfjs-viewer{height:calc(100vh - 60px)}}

/* 3.1 stable PDF.js-only reader */
body:has(.mb-reader-standalone){margin:0!important;padding:0!important}
.mb-reader-standalone{position:fixed;inset:0;z-index:999999;background:#202124;display:flex;flex-direction:column}
.mb-reader-top{height:58px;min-height:58px;background:#17191c;color:#fff;display:flex;align-items:center;gap:20px;padding:0 18px;box-sizing:border-box}
.mb-reader-back{color:#fff;text-decoration:none;background:#2a2d31;border:1px solid #444;border-radius:8px;padding:8px 11px;font:700 11px Inter,Arial,sans-serif}
.mb-reader-title{display:flex;flex-direction:column;gap:2px;min-width:0}.mb-reader-title span{color:#ff6b35;font:900 8px Inter,Arial,sans-serif;letter-spacing:2px}.mb-reader-title strong{font:700 14px Inter,Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-reader-viewer{flex:1;min-height:0;width:100%;height:calc(100vh - 58px);background:#202124;overflow:hidden}
.mb-reader-viewer .pdfjs-viewer,.mb-reader-viewer .pdfjs-viewer-container{width:100%!important;height:100%!important;max-width:none!important}
.mb-reader-viewer iframe{width:100%!important;height:100%!important;border:0!important;display:block!important}
@media(max-width:600px){.mb-reader-top{height:52px;min-height:52px;padding:0 10px}.mb-reader-viewer{height:calc(100vh - 52px)}.mb-reader-back{font-size:0;padding:8px 10px}.mb-reader-back:after{content:'×';font-size:22px}.mb-reader-title strong{font-size:13px;max-width:70vw}}


/* Mayombe Books 3.2.2 — readable PDF pages on desktop and mobile.
   PDF.js supports page-width as an initial zoom mode; page-fit makes portrait
   pages unnecessarily small on tall/full-screen readers. */
.mb-pdfjs-reader .mb-pdfjs-viewer,
.mb-reader-standalone .mb-reader-viewer{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.mb-pdfjs-reader .mb-pdfjs-viewer iframe,
.mb-reader-standalone .mb-reader-viewer iframe{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  border:0!important;
}
@media(max-width:700px){
  .mb-pdfjs-reader .mb-pdfjs-viewer iframe,
  .mb-reader-standalone .mb-reader-viewer iframe{
    width:100%!important;
    height:100%!important;
  }
}

/* Mayombe Books 3.2.3 — true full-screen PDF.js surface.
   The PDF.js iframe is isolated from the WordPress theme, so the parent
   surface and the viewer's internal scrolling area both need full height. */
body:has(.mb-reader-standalone){
  margin:0!important;padding:0!important;overflow:hidden!important;
}
body:has(.mb-reader-standalone) #masthead,
body:has(.mb-reader-standalone) header.site-header,
body:has(.mb-reader-standalone) .site-header,
body:has(.mb-reader-standalone) .site-footer,
body:has(.mb-reader-standalone) footer.site-footer,
body:has(.mb-reader-standalone) .elementor-location-header,
body:has(.mb-reader-standalone) .elementor-location-footer{display:none!important}
body:has(.mb-reader-standalone) .site-content,
body:has(.mb-reader-standalone) .content-area,
body:has(.mb-reader-standalone) .entry-content,
body:has(.mb-reader-standalone) main.site-main{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
.mb-reader-standalone{
  position:fixed!important;inset:0!important;z-index:2147483000!important;
  width:100vw!important;height:100dvh!important;max-width:none!important;
  margin:0!important;padding:0!important;background:#202124!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
.mb-reader-top{
  flex:0 0 54px!important;height:54px!important;min-height:54px!important;
  box-sizing:border-box!important;padding:0 16px!important;
  background:#17191c!important;color:#fff!important;
  display:flex!important;align-items:center!important;gap:14px!important;
}
.mb-reader-viewer{
  flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important;
  max-width:none!important;margin:0!important;padding:0!important;
  overflow:hidden!important;background:#202124!important;
}
.mb-reader-viewer > *{width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;}
.mb-reader-viewer iframe{
  display:block!important;width:100%!important;height:100%!important;
  min-width:100%!important;min-height:100%!important;max-width:none!important;
  max-height:none!important;border:0!important;margin:0!important;padding:0!important;
}
@media(max-width:700px){
  .mb-reader-top{flex-basis:48px!important;height:48px!important;min-height:48px!important;padding:0 10px!important;gap:8px!important}
  .mb-reader-back{font-size:0!important;padding:7px 10px!important}
  .mb-reader-back:after{content:'×';font-size:22px;line-height:1}
  .mb-reader-title span{font-size:7px!important;letter-spacing:1.5px!important}
  .mb-reader-title strong{font-size:13px!important;max-width:72vw!important}
}


/* Mayombe Books 3.2.4 — final reader layout.
   The WordPress page is only the shell; PDF.js owns the reading surface.
   The PDF.js viewer supports page-width, which is the correct initial scale
   for a portrait book on both desktop and mobile. */
body:has(.mb-reader-standalone){
  margin:0!important;
  padding:0!important;
  width:100%!important;
  min-height:100%!important;
  overflow:hidden!important;
  background:#202124!important;
}
body:has(.mb-reader-standalone) #page,
body:has(.mb-reader-standalone) .site,
body:has(.mb-reader-standalone) .site-content,
body:has(.mb-reader-standalone) .content-area,
body:has(.mb-reader-standalone) .entry-content,
body:has(.mb-reader-standalone) main.site-main{
  width:100%!important;
  max-width:none!important;
  min-height:100%!important;
  margin:0!important;
  padding:0!important;
}
.mb-reader-standalone{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100svh!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-rows:48px minmax(0,1fr)!important;
  overflow:hidden!important;
  background:#202124!important;
}
.mb-reader-top{
  position:relative!important;
  z-index:10!important;
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:0 12px!important;
  margin:0!important;
  background:#17191c!important;
  color:#fff!important;
  border-bottom:1px solid #333!important;
  overflow:hidden!important;
}
.mb-reader-title{
  min-width:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  line-height:1.05!important;
}
.mb-reader-title span{
  color:#ff6b2c!important;
  font-size:7px!important;
  line-height:1!important;
  letter-spacing:1.8px!important;
  font-weight:900!important;
}
.mb-reader-title strong{
  display:block!important;
  margin-top:3px!important;
  max-width:100%!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.mb-reader-back{
  order:0!important;
  flex:0 0 auto!important;
  width:34px!important;
  height:34px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  color:#fff!important;
  background:#292d31!important;
  border:1px solid #444!important;
  border-radius:9px!important;
  text-decoration:none!important;
  font-size:0!important;
}
.mb-reader-back:after{content:'×';font-size:24px!important;line-height:1!important;font-weight:400!important}
.mb-reader-viewer{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#202124!important;
}
.mb-reader-viewer > *{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.mb-reader-viewer iframe{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  border:0!important;
  margin:0!important;
  padding:0!important;
  background:#202124!important;
}
@media(max-width:700px){
  .mb-reader-standalone{
    grid-template-rows:46px minmax(0,1fr)!important;
    height:100dvh!important;
  }
  .mb-reader-top{
    height:46px!important;
    min-height:46px!important;
    padding:0 9px!important;
    gap:8px!important;
  }
  .mb-reader-back{width:32px!important;height:32px!important;border-radius:8px!important}
  .mb-reader-back:after{font-size:23px!important}
  .mb-reader-title span{font-size:6px!important;letter-spacing:1.5px!important}
  .mb-reader-title strong{font-size:13px!important;margin-top:2px!important}
}
@media(min-width:701px){
  .mb-reader-standalone{grid-template-rows:52px minmax(0,1fr)!important}
  .mb-reader-top{height:52px!important;min-height:52px!important;padding:0 18px!important}
}


/* Mayombe Books 3.3.11 — restore the proven 3.2.4 standalone reader shell.
   The protected PDF URL and entitlement logic remain unchanged from 3.3.10.
   Keep the PDF.js iframe inside the grid's remaining row on desktop and mobile. */
.mb-reader-standalone{
  position:fixed!important;inset:0!important;z-index:2147483000!important;
  width:100vw!important;height:100dvh!important;min-height:100svh!important;
  max-width:none!important;margin:0!important;padding:0!important;
  display:grid!important;grid-template-rows:48px minmax(0,1fr)!important;
  overflow:hidden!important;background:#202124!important;
}
.mb-reader-standalone .mb-reader-viewer{
  position:relative!important;isolation:isolate!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:none!important;margin:0!important;padding:0!important;
  overflow:hidden!important;background:#202124!important;
}
.mb-reader-standalone .mb-reader-viewer > *{
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:none!important;margin:0!important;padding:0!important;
}
.mb-reader-standalone .mb-reader-viewer iframe{
  position:absolute!important;inset:0!important;display:block!important;
  width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;
  max-width:none!important;max-height:none!important;border:0!important;margin:0!important;padding:0!important;
  background:#202124!important;
}
.mb-reader-standalone .mb-reader-watermark{position:absolute!important;inset:0!important;z-index:99999!important;}
.mb-reader-standalone .mb-reader-load-error{position:absolute!important;z-index:100000!important;}
@media(max-width:700px){
  .mb-reader-standalone{grid-template-rows:46px minmax(0,1fr)!important;height:100dvh!important;}
  .mb-reader-standalone .mb-reader-top{height:46px!important;min-height:46px!important;padding:0 9px!important;gap:8px!important;}
  .mb-reader-standalone .mb-reader-back{width:32px!important;height:32px!important;border-radius:8px!important;}
  .mb-reader-standalone .mb-reader-back:after{font-size:23px!important;}
  .mb-reader-standalone .mb-reader-title span{font-size:6px!important;letter-spacing:1.5px!important;}
  .mb-reader-standalone .mb-reader-title strong{font-size:13px!important;margin-top:2px!important;}
}

/* 3.3.0 — access-mode pricing and subscriber purchase panel */
.mb-book-price-block,.mb-book-subscription-block{display:flex;flex-direction:column;gap:3px;min-width:150px;}
.mb-book-price-block small,.mb-book-subscription-block small{font-size:8px;letter-spacing:1.2px;color:#91979c;font-weight:850;}
.mb-book-price-block strong,.mb-book-subscription-block strong{font-size:23px;line-height:1.2;color:#17191c;}
.mb-book-subscription-block{border-left:1px solid #eee;padding-left:14px;}
.mb-book-subscription-block strong{font-size:16px;}
.mb-book-subscription-block span,.mb-preview-note,.mb-book-login-note{font-size:10px;color:#83898e;line-height:1.5;}
.mb-subscribe-btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 18px;border-radius:10px;background:#17191c;color:#fff;text-decoration:none;font-weight:800;}
.mb-book-login-note{margin-top:15px;}
.mb-book-buy .mb-read-btn{background:#ff6b35;color:#fff;}
@media(max-width:700px){
 .mb-book-product{padding:0 14px;margin:20px auto 26px;gap:18px;}
 .mb-book-product-cover{min-height:0;border-radius:14px;}
 .mb-book-product-cover img{width:100%;max-height:65vh;object-fit:contain;}
 .mb-book-product-info h1{font-size:29px;line-height:1.12;}
 .mb-book-synopsis{font-size:14px;line-height:1.7;}
 .mb-book-buy{padding:14px;gap:10px;}
 .mb-book-price-block,.mb-book-subscription-block{min-width:100%;border:0;padding:0;}
 .mb-book-buy .mb-buy-btn,.mb-book-buy .mb-subscribe-btn,.mb-book-buy .mb-read-btn{width:100%;box-sizing:border-box;text-align:center;justify-content:center;}
}


/* 3.3.0 — front-end writer submission form, responsive on mobile and tablet */
.mb-author-form{box-sizing:border-box;width:100%;max-width:760px;margin:20px auto;padding:clamp(16px,3vw,28px);background:#fff;border:1px solid #e8e9eb;border-radius:16px;box-shadow:0 12px 34px rgba(0,0,0,.05);}
.mb-author-form label{display:flex;flex-direction:column;gap:7px;color:#34383c;font-size:12px;font-weight:750;min-width:0;}
.mb-author-form input[type="text"],.mb-author-form input[type="number"],.mb-author-form input[type="file"],.mb-author-form select,.mb-author-form textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:44px;padding:12px 13px;border:1px solid #dfe3e6;border-radius:10px;background:#fff;color:#222;font:400 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.mb-author-form textarea{min-height:190px;resize:vertical;line-height:1.7;}
.mb-author-form textarea:focus,.mb-author-form input:focus,.mb-author-form select:focus{outline:0;border-color:#ff8a5b;box-shadow:0 0 0 3px rgba(255,107,53,.12);}
.mb-author-form button{min-height:46px;padding:12px 20px;cursor:pointer;}
@media(max-width:800px){.mb-author-form{margin:16px auto;padding:18px;border-radius:13px;}.mb-author-form textarea{min-height:165px;}}
@media(max-width:520px){.mb-author-form{padding:14px 12px;margin:12px 0;}.mb-author-form textarea{min-height:145px;font-size:14px;}.mb-author-form input[type="file"]{font-size:12px;}}

/* Mayombe Books 3.3.12 — discreet reader-identification watermark.
   Six marks only, with low opacity and no shadow to preserve text contrast. */
.mb-pdfjs-viewer{position:relative!important;isolation:isolate}
.mb-reader-watermark{position:absolute!important;inset:0!important;z-index:99999!important;pointer-events:none!important;user-select:none!important;-webkit-user-select:none!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;align-items:center!important;justify-items:center!important;gap:8px!important;overflow:hidden!important;opacity:.10!important}
.mb-reader-watermark span{display:block!important;max-width:84%!important;color:#242424!important;font:700 11px/1.45 Arial,sans-serif!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;text-shadow:none!important;transform:rotate(-24deg)!important;letter-spacing:.25px!important}
.mb-pdfjs-reader,.mb-pdfjs-reader *{-webkit-touch-callout:none}
@media(max-width:600px){.mb-reader-watermark{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:6px!important}.mb-reader-watermark span{max-width:92%!important;font-size:9px!important;line-height:1.4!important}}


/* Mayombe Books 3.3.6 — single product page reading action */
.mb-wc-book-read-action{margin:16px 0 22px;padding:16px 18px;border:1px solid #f0e1d8;border-radius:14px;background:#fffaf7;display:flex;flex-wrap:wrap;align-items:center;gap:12px;clear:both}
.mb-wc-read-now{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 22px!important;border:0!important;border-radius:10px!important;background:#f47716!important;color:#fff!important;text-decoration:none!important;font-weight:800!important;font-size:16px!important;line-height:1.2!important;box-shadow:0 5px 14px rgba(244,119,22,.18)}
.mb-wc-read-now:hover,.mb-wc-read-now:focus{background:#d95f08!important;color:#fff!important;transform:translateY(-1px)}
.mb-wc-read-locked{background:#222629!important}
.mb-wc-read-note{flex:1 1 240px;margin:0!important;color:#555!important;font-size:13px!important;line-height:1.55!important}
.mb-wc-read-unavailable{font-weight:800;color:#555}
.mb-wc-return-notice{display:flex;flex-direction:column;gap:7px;margin:12px 0 20px;padding:15px 18px;border-left:4px solid #f47716;border-radius:8px;background:#fff6ef;color:#252525}
.mb-wc-return-notice span{font-size:13px;line-height:1.5}
.mb-wc-return-notice a{align-self:flex-start;color:#c65309!important;font-weight:800;text-decoration:underline}
.mb-wc-return-paid{margin:18px 0;padding:18px;border-left-color:#2da66b;background:#effaf3}
@media(max-width:600px){.mb-wc-book-read-action{display:flex;flex-direction:column;align-items:stretch;padding:14px;gap:9px}.mb-wc-read-now{width:100%;box-sizing:border-box}.mb-wc-read-note{width:100%;font-size:12px!important}.mb-wc-return-notice{padding:13px}}

/* 3.3.7 — clear feedback if PDF.js cannot fetch or parse the protected file. */
.mb-pdfjs-viewer{position:relative!important}
.mb-reader-load-error{position:absolute;z-index:20;left:16px;right:16px;top:16px;padding:14px 16px;border-left:4px solid #c62828;border-radius:8px;background:#fff1f0;color:#7f1d1d;font:600 14px/1.5 Arial,sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.22)}
.mb-reader-load-error[hidden]{display:none!important}
