/* Lector del estudiante: página completa, herramientas secundarias y acciones visibles. */
#unitViewer .student-book{background:#f8fafc!important;border:1px solid #cbd5e1!important}
#unitViewer .student-book>h3{color:#173655;font-family:Georgia,serif;font-size:20px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#unitViewer .student-book #bookToolbar{position:relative!important;border:0!important;background:transparent!important;gap:6px!important}
#unitViewer .student-book #bookScroll{background:radial-gradient(ellipse at center,#e9e3d8,#cbd5df)!important;border-radius:14px!important;padding:10px!important}
#unitViewer .student-book #bookSheet{box-shadow:0 10px 22px #24364940,4px 0 0 #ebe7df,7px 0 0 #fff;border-radius:2px;isolation:isolate}
#unitViewer .student-book #bookReadingPosition{display:block;width:100%;height:5px;margin:2px 0 6px;accent-color:#138579}
#unitViewer .student-book #bookStatus{color:#334155;margin:4px 0 6px;min-height:16px}
#unitViewer .student-book .book-reading-options{position:relative;margin-left:auto}
#unitViewer .student-book .book-reading-options summary{cursor:pointer;padding:8px 12px;border:1px solid #b5c6d8;border-radius:9px;background:white;color:#244664;font-weight:700}
#unitViewer .student-book .book-reading-tools{position:absolute;right:0;top:100%;display:flex;align-items:center;gap:5px;flex-wrap:wrap;width:260px;padding:12px;background:white;box-shadow:0 8px 22px #17365533;border:1px solid #cbd5e1;border-radius:10px;z-index:20}
#unitViewer .student-book .book-student-actions{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:8px 0!important;background:#fff;border:1px solid #d5e2ec;border-radius:12px;padding:8px}
#unitViewer .student-book .book-student-actions>span{font-size:12px;color:#475569;margin-right:auto}
#recursos .student-book #bookSaveAnswers{background:white!important;color:#185b99!important;border:1px solid #185b99!important}
#recursos .student-book #bookSubmitAnswers{background:#087f69!important;color:white!important;border-color:#087f69!important}
#unitViewer .student-book #bookFieldEdit{max-height:80px;overflow:auto;font-size:13px}
#unitViewer .student-book #bookFieldEdit p{margin:3px 0}
#unitViewer .student-book #bookFields textarea:focus{outline:3px solid #f59e0b;outline-offset:2px;z-index:3;background:#fff!important}
#unitViewer .student-book button:focus-visible,#unitViewer .student-book summary:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}
#unitViewer .student-book>p:last-child{font-size:11px!important;line-height:1.3;margin:4px 0!important;color:#475569}
@media(max-width:600px){#unitViewer .student-book .book-student-actions>span{display:none}#unitViewer .student-book .book-student-actions button{flex:1;padding:8px!important;font-size:12px!important}#unitViewer .student-book .book-reading-options{margin-left:0}#unitViewer .student-book .book-reading-tools{left:0;right:auto}#unitViewer .student-book>h3{font-size:15px!important}}

/* Controles visibles y navegación lateral sin cubrir las respuestas. */
#unitViewer .student-book .book-page-frame{position:relative;padding:0 48px}
#recursos .student-book .book-side-arrow{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:64px;padding:0!important;margin:0!important;border-radius:16px;background:#175ca8;color:#fff;font-size:24px;box-shadow:0 4px 12px #17365530;z-index:4}
#unitViewer .student-book #bookSidePrev{left:0}
#unitViewer .student-book #bookSideNext{right:0}
#recursos .student-book .book-side-arrow:disabled{opacity:.3;cursor:default}
#recursos .student-book #bookExit{background:#b42336!important;border-color:#b42336!important;color:white!important;margin-left:auto!important}
#recursos .student-book #bookExpand{background:#6d28d9!important;color:white!important;border-color:#6d28d9!important}
@media(max-width:600px){#unitViewer .student-book .book-page-frame{padding:0 32px}#recursos .student-book .book-side-arrow{width:28px;height:52px;font-size:18px;border-radius:10px}#recursos .student-book #bookExit{margin-left:0!important}}

/* Aprovechar el ancho del visor y reducir márgenes interiores. */
#unitViewer .student-book{width:100%;max-width:none!important;box-sizing:border-box;padding:8px!important;margin-left:0!important;margin-right:0!important}
#unitViewer .student-book.book-wide-view{inset:3px!important;padding:6px!important}
#unitViewer .student-book #bookScroll{padding:5px!important}
#unitViewer .student-book .book-page-frame{padding:0 42px}
@media(max-width:600px){#unitViewer .student-book .book-page-frame{padding:0 30px}}
