/* LDC guided reader 3.31.141. The app retains its original background/colors.
   This is an opt-in reader for actual guided chapters, never a global theme. */
.app.ldc-guided-reading .main{
 height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;
 /* IMPORTANT: no background override. The parent app's existing background remains. */
}
.app.ldc-guided-reading .content-wrap{
 flex:1;min-height:0;min-width:0;width:100%;max-width:none;
 display:flex;align-items:center;justify-content:center;
 margin:0 auto;padding:clamp(10px,2vh,22px) clamp(12px,2.4vw,30px);
}
.app.ldc-guided-reading .paper.ldc-gbook-paper{
 flex:0 1 auto;width:min(100%,680px);height:min(900px,100%);max-height:100%;
 min-height:0;min-width:0;margin:auto;display:flex;flex-direction:column;
 padding:0!important;overflow:hidden;border:1px solid var(--line);
 border-radius:23px;background:var(--paper);
 box-shadow:0 18px 46px rgba(48,44,37,.12);
}
.ldc-gbook-stack{position:relative;min-height:0;flex:1;overflow:hidden;perspective:1400px;background:var(--paper);}
.ldc-gbook-slide{
 position:absolute;inset:0;min-height:0;
 padding:clamp(23px,3vw,46px) clamp(25px,4vw,52px);
 overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d3c2a9 transparent;
 background:var(--paper);color:var(--text);transform-origin:left center;backface-visibility:hidden;
}
.ldc-gbook-slide[hidden]{display:none!important;}
.ldc-gbook-flow{margin:0 auto;max-width:560px;min-width:0;}
.ldc-gbook-slide .ldc-app-flow-block{break-inside:avoid;page-break-inside:avoid;}
.ldc-gbook-slide .ldc-app-flow-block:first-child{margin-top:0;}
.ldc-gbook-slide .ldc-app-chapter-content p,.ldc-gbook-slide .ldc-app-chapter-content li{
 font-family:Cardo,Georgia,serif;font-size:clamp(16px,1.13vw,18px);line-height:1.58;
}
.ldc-gbook-slide .ldc-app-chapter-content :is(h1,h2,h3,h4){font-family:Cinzel,Georgia,serif;line-height:1.25;}
.ldc-gbook-slide .ldc-app-chapter-content img{max-width:100%;max-height:38dvh;height:auto;object-fit:contain;}
.ldc-gbook-slide .ldc-app-chapter-content figure{margin:0;}
/* Reading sheets scroll inside the book; no text can be hidden by the footer. */
.ldc-gbook-slide::-webkit-scrollbar{width:7px;}
.ldc-gbook-slide::-webkit-scrollbar-thumb{border-radius:99px;background:#d3c2a9;}
/* Writing is always the last page. Preserve original editors, content and callbacks. */
.ldc-gbook-slide.is-writing{overflow-y:auto;scrollbar-width:thin;}
.ldc-gbook-slide.is-writing .guided-app-writing-zone{min-height:0;}
.ldc-gbook-slide.is-writing .rich-editor{min-height:clamp(145px,28dvh,310px);}
.ldc-gbook-slide.is-writing .section-nav{
 position:relative;display:flex;justify-content:flex-end;align-items:center;
 gap:12px;margin:19px 0 0;padding-top:15px;border-top:1px solid var(--line);
}
.ldc-gbook-slide.is-writing .section-nav #prevBtn{display:none;}
.ldc-gbook-slide.is-writing .section-nav button{min-width:100px;}
.ldc-gbook-nav{
 display:flex;flex:none;align-items:center;justify-content:center;gap:16px;
 min-height:65px;padding:8px 15px;border-top:1px solid var(--line);
 background:var(--paper);
}
.ldc-gbook-arrow{
 display:grid;place-items:center;padding:0;width:43px;height:43px;min-width:43px;
 border:1px solid var(--line);border-radius:50%;color:var(--brand);background:#fff;
 cursor:pointer;transition:background .2s,border-color .2s;
}
.ldc-gbook-arrow:hover:not(:disabled){background:var(--soft);border-color:var(--brand);}
.ldc-gbook-arrow:disabled{opacity:.35;cursor:default;}
.ldc-gbook-count{min-width:108px;text-align:center;font:600 13px Cinzel,Georgia,serif;color:var(--text);}
@keyframes ldcGBookTurnInNext{from{opacity:.38;transform:rotateY(13deg) translateX(28px)}to{opacity:1;transform:rotateY(0) translateX(0)}}
@keyframes ldcGBookTurnOutNext{from{opacity:1;transform:rotateY(0)}to{opacity:0;transform:rotateY(-13deg) translateX(-28px)}}
@keyframes ldcGBookTurnInBack{from{opacity:.38;transform:rotateY(-13deg) translateX(-28px)}to{opacity:1;transform:rotateY(0) translateX(0)}}
@keyframes ldcGBookTurnOutBack{from{opacity:1;transform:rotateY(0)}to{opacity:0;transform:rotateY(13deg) translateX(28px)}}
.ldc-gbook-slide.is-entering-next{animation:ldcGBookTurnInNext .38s ease-out both;z-index:2;}
.ldc-gbook-slide.is-leaving-next{animation:ldcGBookTurnOutNext .38s ease-in both;z-index:1;}
.ldc-gbook-slide.is-entering-back{animation:ldcGBookTurnInBack .38s ease-out both;z-index:2;}
.ldc-gbook-slide.is-leaving-back{animation:ldcGBookTurnOutBack .38s ease-in both;z-index:1;}
@media(max-width:640px){
 .app.ldc-guided-reading .content-wrap{padding:18px 8px 8px;}
 .app.ldc-guided-reading .paper.ldc-gbook-paper{width:100%;border-radius:17px;}
 .ldc-gbook-slide{padding:24px 22px 18px;}
 .ldc-gbook-slide .ldc-app-chapter-content p,.ldc-gbook-slide .ldc-app-chapter-content li{font-size:16px;line-height:1.55;}
 .ldc-gbook-slide .ldc-app-chapter-content img{max-height:30dvh;}
 .ldc-gbook-nav{min-height:58px;padding:6px 9px;}
 .ldc-gbook-slide.is-writing .section-nav{flex-wrap:wrap;}
 .ldc-gbook-slide.is-writing .section-nav button{flex:1;min-width:0;}
}
@media(max-width:390px){.ldc-gbook-slide{padding:19px 16px 16px;}.ldc-gbook-slide .ldc-app-chapter-content img{max-height:26dvh;}}
@media(max-height:560px){
 .app.ldc-guided-reading .content-wrap{padding-top:7px;padding-bottom:7px;}
 .ldc-gbook-slide{padding-top:15px;padding-bottom:12px;}
 .ldc-gbook-nav{min-height:50px;}
}
@media(prefers-reduced-motion:reduce){.ldc-gbook-slide.is-entering-next,.ldc-gbook-slide.is-entering-back,.ldc-gbook-slide.is-leaving-next,.ldc-gbook-slide.is-leaving-back{animation:none!important;}}

/* 3.31.151: full-height writing/reading leaf. Only affects guided book writing. */
.ldc-gbook-slide.is-writing{
 display:flex;flex-direction:column;overflow:hidden;
 padding-top:clamp(16px,2.1vw,30px);padding-bottom:clamp(16px,2.1vw,30px);
}
.ldc-gbook-slide.is-writing>.ldc-gbook-flow{
 display:flex;flex-direction:column;flex:1 1 0;min-height:0;min-width:0;
 max-width:none;width:100%;margin:0;
}
.ldc-gbook-slide.is-writing .guided-app-writing-zone{
 display:flex;flex-direction:column;flex:1 1 0;min-height:0;min-width:0;
}
.ldc-gbook-slide.is-writing .write-heading-actions>span,
.ldc-gbook-slide.is-writing .editor-help{display:none!important;}
.ldc-gbook-slide.is-writing .write-heading-actions:not(:has(.guided-handwrite-slot-btn)){display:none;}
.ldc-gbook-slide.is-writing .editor-shell{
 display:flex;flex-direction:column;flex:1 1 0;min-height:0;min-width:0;
}
.ldc-gbook-slide.is-writing .rich-editor{
 flex:1 1 0;min-height:0!important;height:100%;
 overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
}
.ldc-gbook-slide.is-writing .section-nav{
 flex:0 0 auto;margin:12px 0 0;padding-top:12px;
}
/* Read state: leave the actual editor and its listeners intact but hidden.
   The saved formatted HTML is drawn from the existing sanitized state. */
.ldc-gbook-slide.is-writing .guided-app-writing-zone.ldc-gbook-reading-answer .editor-shell{display:none;}
.ldc-gbook-slide.is-writing .ldc-gbook-saved-text{
 flex:1 1 0;min-height:0;padding:12px 3px;
 overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
 scrollbar-width:thin;scrollbar-color:#d3c2a9 transparent;
 font-family:Cardo,Georgia,serif;font-size:clamp(16px,1.13vw,18px);
 line-height:1.65;color:var(--text);overflow-wrap:anywhere;
}
.ldc-gbook-slide.is-writing .ldc-gbook-saved-text[hidden]{display:none!important;}
.ldc-gbook-slide.is-writing .ldc-gbook-saved-text :first-child{margin-top:0;}
.ldc-gbook-slide.is-writing .ldc-gbook-saved-text :last-child{margin-bottom:0;}
.ldc-gbook-slide.is-writing .ldc-gbook-saved-text ul,
.ldc-gbook-slide.is-writing .ldc-gbook-saved-text ol{padding-left:1.6em;}
@media(max-width:640px){
 .ldc-gbook-slide.is-writing{padding:16px 18px;}
 .ldc-gbook-slide.is-writing .section-nav{margin-top:10px;padding-top:10px;}
}

/* 3.31.152: match the desktop guided reader to the standard diary content width.
   Keep mobile and tablet layouts unchanged. */
@media (min-width:851px){
 .app.ldc-guided-reading .paper.ldc-gbook-paper{width:min(100%,980px);}
 .app.ldc-guided-reading .ldc-gbook-slide>.ldc-gbook-flow{max-width:100%;width:100%;}
}

/* 3.31.153 - Prompts: same guided-book sheet, footer and rich editor.
   Only presentation changes; no separate module state or storage. */
.module-runner.ldc-module-book{
 width:min(100%,980px);height:min(900px,calc(100dvh - 120px));
 min-height:400px;margin:18px auto 28px;display:flex;flex-direction:column;
 border-radius:23px;background:var(--paper);box-shadow:0 18px 46px rgba(48,44,37,.12);
}
.ldc-module-book .module-runner-head{flex:0 0 auto;background:var(--paper);padding:11px 24px;}
.ldc-module-book .module-runner-body{min-height:0;min-width:0;padding:0;flex:1;display:flex;flex-direction:column;}
.ldc-module-book #moduleFields{flex:1;min-height:0;min-width:0;margin:0;padding:0;max-width:none;}
.ldc-module-book .ldc-gbook-slide{width:100%;}
.ldc-module-book .ldc-gbook-flow{width:100%;max-width:none;}
.ldc-module-book .ldc-gbook-slide.is-writing{display:flex;flex-direction:column;overflow:hidden;}
.ldc-module-book .ldc-gbook-slide.is-writing>.ldc-gbook-flow{flex:1 1 0;min-height:0;display:flex;flex-direction:column;}
.ldc-module-book .module-app-writing{flex:1 1 0;min-height:0;display:flex;flex-direction:column;}
.ldc-module-book .module-app-writing .editor-shell{flex:1 1 0;min-height:0;display:flex;flex-direction:column;}
.ldc-module-book .module-app-writing .rich-editor{flex:1 1 0;min-height:0!important;height:100%;overflow:auto;}
.ldc-module-book .module-app-writing.ldc-gbook-reading-answer .editor-shell{display:none;}
.ldc-module-book .module-app-writing .ldc-gbook-saved-text{flex:1 1 0;min-height:0;overflow:auto;padding:12px 3px;font-family:Cardo,Georgia,serif;line-height:1.65;overflow-wrap:anywhere;}
.ldc-module-book .module-app-writing .ldc-gbook-saved-text[hidden]{display:none!important;}
.ldc-module-book .module-runner-actions{flex:0 0 auto;margin-top:10px;padding-top:10px;}
.ldc-module-book .module-save-status{flex:0 0 auto;margin-top:5px;}
.ldc-module-book .module-save-status:empty{display:none;}
.ldc-module-book .module-saved-actions{flex:0 0 auto;margin-top:7px;}
.ldc-module-book .module-date-row{flex:0 0 auto;margin-bottom:9px;}
.ldc-module-book .ldc-module-book-nav .ldc-gbook-arrow{display:none;}
.ldc-module-book .ldc-module-book-nav.is-writing-page .ldc-gbook-arrow{display:grid;}
.ldc-module-book .ldc-module-book-nav.is-writing-page .ldc-module-book-start{display:none;}
.ldc-module-book-start{padding:11px 28px;border-radius:25px;border:1px solid var(--line);color:var(--brand);background:#fff;font:600 13px Cinzel,Georgia,serif;cursor:pointer;}
.ldc-module-book-start:hover{background:var(--soft);}
@media(max-width:640px){
 .module-runner.ldc-module-book{width:100%;height:calc(100dvh - 85px);min-height:350px;}
 .ldc-module-book .module-runner-head{padding:10px 13px;gap:7px;}
 .ldc-module-book .ldc-gbook-slide{padding:21px 18px 16px;}
 .ldc-module-book .module-runner-actions{margin-top:7px;padding-top:7px;}
}

/* 3.31.154 — A prompt is ONE standalone book leaf, not the old inline module form.
   Only apply while that runner is open: keep the prior library screen intact. */
.library-screen.ldc-prompt-focus .library-main::after{
 content:"";position:fixed;inset:0 0 0 var(--sidebar-wide);
 z-index:30;background:var(--bg);pointer-events:auto;
}
.library-screen.sidebar-collapsed.ldc-prompt-focus .library-main::after{left:var(--sidebar-rail);}
.library-screen.ldc-prompt-focus #moduleRunner.ldc-module-book{
 position:fixed;left:calc(var(--sidebar-wide) + 12px);right:12px;
 top:clamp(62px,7vh,88px);bottom:clamp(10px,2vh,22px);
 width:min(980px,calc(100% - var(--sidebar-wide) - 24px));
 height:auto;max-height:none;min-height:0;margin:auto;
 z-index:31;overflow:hidden;border:1px solid var(--line);
 border-radius:23px;background:var(--paper);
}
.library-screen.sidebar-collapsed.ldc-prompt-focus #moduleRunner.ldc-module-book{
 left:calc(var(--sidebar-rail) + 12px);
 width:min(980px,calc(100% - var(--sidebar-rail) - 24px));
}
/* No module header/PDF/date on the reading leaf: only actual prompt components. */
.ldc-module-book>.module-runner-head{display:none!important;}
.ldc-module-book .ldc-gbook-slide:not(.is-writing){padding-top:clamp(25px,4vw,52px);}
.ldc-module-book .ldc-gbook-nav{gap:12px;}
.ldc-module-book-exit{padding:11px 28px;border-radius:25px;border:1px solid var(--line);color:var(--brand);background:#fff;font:600 13px Cinzel,Georgia,serif;cursor:pointer;}
.ldc-module-book-exit:hover{background:var(--soft);}
@media(max-width:640px){
 .library-screen.ldc-prompt-focus .library-main::after{left:0;}
 .library-screen.sidebar-collapsed.ldc-prompt-focus .library-main::after{left:0;}
 .library-screen.ldc-prompt-focus #moduleRunner.ldc-module-book,
 .library-screen.sidebar-collapsed.ldc-prompt-focus #moduleRunner.ldc-module-book{
  left:8px;right:8px;top:70px;bottom:8px;width:calc(100% - 16px);
  height:auto;min-height:0;margin:auto;border-radius:17px;
 }
 .ldc-module-book .ldc-gbook-nav{gap:10px;}
 .ldc-module-book-start,.ldc-module-book-exit{padding:10px 19px;}
}

/* 3.31.155 — Prompts: one-step previous button; page turns reuse guided book keyframes. */
.ldc-module-book .module-previous-question{min-height:42px;border-radius:12px;}
.ldc-module-book .module-previous-question:disabled{opacity:.38;cursor:default;}

/* 3.31.156 — La barra compartida permanece visible cuando aparece el teclado
   en la hoja de escritura móvil. Sin clonar editores ni alterar el guardado. */
@media(max-width:640px){
 html.ldc-mobile-book-editor-focus .app.ldc-guided-reading .main{
  height:var(--ldc-mobile-editor-visible-height,100dvh);
  min-height:0;
 }
 html.ldc-mobile-book-editor-focus .library-screen.ldc-prompt-focus #moduleRunner.ldc-module-book,
 html.ldc-mobile-book-editor-focus .library-screen.sidebar-collapsed.ldc-prompt-focus #moduleRunner.ldc-module-book{
  bottom:auto;
  height:max(170px,calc(var(--ldc-mobile-editor-visible-height,100dvh) - 78px));
  min-height:0;
 }
 .ldc-gbook-slide.is-writing .editor-shell{
  min-height:0;overflow:hidden;
 }
 .ldc-gbook-slide.is-writing .editor-toolbar{
  flex:0 0 auto;min-width:0;position:relative;z-index:2;
  flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;
  overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
 }
 .ldc-gbook-slide.is-writing .editor-toolbar > button,
 .ldc-gbook-slide.is-writing .editor-toolbar > select{flex:0 0 auto;}
 .ldc-gbook-slide.is-writing .rich-editor{
  min-height:0!important;overflow-y:auto;overscroll-behavior:contain;
 }
}

/* 3.31.174 — Historial: the same paper and central navigation as guided journals. */
.library-screen.ldc-history-focus .library-main::after{content:"";position:fixed;inset:0 0 0 var(--sidebar-wide);z-index:30;background:var(--bg);pointer-events:auto}
.library-screen.sidebar-collapsed.ldc-history-focus .library-main::after{left:var(--sidebar-rail)}
/* Avoid creating a fixed-position containing block during the page reveal. */
#pjViewRead.pj-view.active{animation:none!important;transform:none!important}
#pjViewRead.ldc-history-book.active{position:fixed;z-index:31;left:calc(var(--sidebar-wide) + 12px);right:12px;top:clamp(62px,7vh,88px);bottom:clamp(10px,2vh,22px);width:min(980px,calc(100% - var(--sidebar-wide) - 24px));height:auto;min-height:0;margin:auto;padding:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:23px;background:var(--paper);box-shadow:0 18px 46px rgba(48,44,37,.12)}
.sidebar-collapsed #pjViewRead.ldc-history-book.active{left:calc(var(--sidebar-rail) + 12px);width:min(980px,calc(100% - var(--sidebar-rail) - 24px))}
#pjViewRead.ldc-history-book .ldc-gbook-stack{width:100%;min-height:0}
#pjViewRead.ldc-history-book .ldc-gbook-slide{padding-top:clamp(60px,5vw,76px)}
/* Same CSS classes, markup, SVG arrows and page-count formatter as the guided reader.
   Side-day controls simply occupy the outer columns of that same nav. */
#pjViewRead.ldc-history-book .ldc-gbook-nav{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto minmax(0,1fr);justify-content:stretch;column-gap:12px;min-height:65px;padding:8px 15px}
#pjViewRead.ldc-history-book .ldc-gbook-count{min-width:108px;white-space:nowrap}
#pjViewRead.ldc-history-book .ldc-gbook-arrow{width:43px;height:43px;min-width:43px;border-radius:50%}
#pjViewRead.ldc-history-book .ldc-history-leaf-header{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;margin:0 0 20px;padding-bottom:18px;border-bottom:1px solid var(--line)}
#pjViewRead.ldc-history-book .ldc-history-heading{min-width:0}
#pjViewRead.ldc-history-book .ldc-history-kicker{margin:0 0 8px;color:#946a2f;font:700 11px Cinzel,Georgia,serif;letter-spacing:.045em}
#pjViewRead.ldc-history-book .ldc-history-heading h2{margin:0;font:600 clamp(20px,2.4vw,30px)/1.2 Cinzel,Georgia,serif;overflow-wrap:anywhere}
#pjViewRead.ldc-history-book .ldc-history-leaf-actions{display:flex;gap:6px;flex:0 0 auto}
#pjViewRead.ldc-history-book .ldc-history-icon{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--brand);cursor:pointer;font-size:20px;line-height:1}
#pjViewRead.ldc-history-book .ldc-history-icon[hidden]{display:none!important}
#pjViewRead.ldc-history-book .ldc-history-icon.is-favorite{color:#aa7939}
#pjViewRead.ldc-history-book .ldc-history-day{min-width:0;border:0;background:transparent;color:var(--brand);font:600 11px Cinzel,Georgia,serif;cursor:pointer;white-space:nowrap}
#pjViewRead.ldc-history-book .ldc-history-day:first-child{text-align:left}
#pjViewRead.ldc-history-book .ldc-history-day:last-child{text-align:right}
#pjViewRead.ldc-history-book .ldc-history-day:disabled{opacity:.30;cursor:default}
#pjViewRead.ldc-history-book .ldc-history-day-short{display:none}
@media(max-width:900px){
 #pjViewRead.ldc-history-book .ldc-history-day-long{display:none}
 #pjViewRead.ldc-history-book .ldc-history-day-short{display:inline}
}
@media(max-width:640px){
 .library-screen.ldc-history-focus .library-main::after,.library-screen.sidebar-collapsed.ldc-history-focus .library-main::after{left:0}
 #pjViewRead.ldc-history-book.active,.sidebar-collapsed #pjViewRead.ldc-history-book.active{left:8px;right:8px;top:70px;bottom:calc(8px + var(--ldc-history-visible-bottom,0px) + env(safe-area-inset-bottom,0px));width:calc(100% - 16px);border-radius:17px}
 #pjViewRead.ldc-history-book .ldc-gbook-slide{padding:58px 18px 16px}
 #pjViewRead.ldc-history-book .ldc-history-leaf-header{gap:8px}
 #pjViewRead.ldc-history-book .ldc-history-icon{width:30px;height:30px;font-size:18px}
 #pjViewRead.ldc-history-book .ldc-gbook-nav{min-height:58px;padding:6px 9px;column-gap:5px}
 #pjViewRead.ldc-history-book .ldc-gbook-arrow{width:34px;height:34px;min-width:34px}
 #pjViewRead.ldc-history-book .ldc-gbook-count{min-width:83px;font-size:11px}
 #pjViewRead.ldc-history-book .ldc-history-day{font-size:10px}
 #pjViewRead.ldc-history-book .ldc-history-day-long{display:none}
 #pjViewRead.ldc-history-book .ldc-history-day-short{display:inline}
}
@media(max-width:360px){
 #pjViewRead.ldc-history-book .ldc-gbook-nav{padding:5px 6px;column-gap:3px}
 #pjViewRead.ldc-history-book .ldc-gbook-arrow{width:32px;height:32px;min-width:32px}
 #pjViewRead.ldc-history-book .ldc-gbook-count{min-width:74px;font-size:10px}
 #pjViewRead.ldc-history-book .ldc-history-day{font-size:9px}
 #pjViewRead.ldc-history-book .ldc-gbook-slide{padding-left:14px;padding-right:14px}
}

/* 3.31.176 — The existing mobile hamburger over all three reading surfaces. */
@media (max-width:640px){
 .library-screen:is(.ldc-history-focus,.ldc-prompt-focus) .library-topbar{
   position:fixed;top:8px;left:12px;right:auto;width:auto;height:46px;
   padding:0;margin:0;z-index:80;background:transparent;border:0;box-shadow:none;
 }
 .library-screen:is(.ldc-history-focus,.ldc-prompt-focus) .library-topbar .library-mobile-menu{
   display:inline-grid!important;place-items:center;pointer-events:auto;
 }
 .app.ldc-guided-reading .topbar{z-index:80;}
 .library-screen:is(.ldc-history-focus,.ldc-prompt-focus) .library-sidebar.open,
 .app.ldc-guided-reading .sidebar.open{z-index:100;}
 .library-screen:is(.ldc-history-focus,.ldc-prompt-focus) .overlay.show,
 .app.ldc-guided-reading .overlay.show{z-index:90;}
}

/* 3.31.177 — Opening and closing use the same single reading leaf.
   Only the footer differs: it holds the existing buttons like the prompts. */
.ldc-gbook-editorial-paper .ldc-gbook-nav{
 display:flex;flex-direction:column;gap:6px;justify-content:center;
 padding:9px 12px;min-height:65px;
}
.ldc-gbook-editorial-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;width:100%;}
.ldc-gbook-editorial-actions .ldc-module-book-start{min-width:0;max-width:100%;}
.ldc-gbook-editorial-nav .form-note{font-size:12px;text-align:center;margin:0;}
.ldc-gbook-editorial-nav .form-note:empty{display:none;}
@media(max-width:640px){
 .ldc-gbook-editorial-paper .ldc-gbook-nav{min-height:58px;padding:7px 9px;}
 .ldc-gbook-editorial-actions{gap:7px;}
 .ldc-gbook-editorial-actions .ldc-module-book-start{padding:9px 14px;font-size:11px;}
}
