.menu-group{border-top:1px solid #e2e9e4;padding:8px 0}.menu-group summary{cursor:pointer;padding:8px;font-weight:bold}.menu-group select{max-width:165px;font-size:12px}#educational-layer{border:2px solid var(--layer-color,#738d81);color:var(--layer-color,#738d81);background:transparent}#educational-layer[aria-pressed=true]{background:color-mix(in srgb,var(--layer-color) 14%,transparent)}.layer-swatch{display:inline-block!important;width:13px;height:13px;border-radius:50%;margin:0 0 0 10px!important;background:var(--layer-color)}.educational-mark{background:color-mix(in srgb,var(--layer-color) 15%,transparent);box-shadow:inset 0 -2px var(--layer-color);border-radius:.12em;cursor:pointer}.educational-mark:not(.error):not(.review-candidate){color:var(--layer-color)}.education-popup{max-width:740px;max-height:85dvh;overflow:auto}.education-popup #education-body{white-space:pre-wrap;line-height:2;font-size:17px}.education-popup #education-context,.education-popup #education-reference{font:13px/1.8 var(--ui-font);white-space:pre-wrap}.education-word{padding:12px;margin:10px 0;border:1px solid #dce6df;border-radius:12px}.education-word h3{margin:0}.education-word button{width:auto}.education-popup a{color:inherit}.layer-active{font-weight:bold}#layer-status:empty{display:none}@media(max-width:500px){.actions{gap:8px}.icon,#record,#brain{width:38px;height:38px}.education-popup #education-body{font-size:16px}}

.layer-option{display:flex;align-items:center;gap:4px;margin-top:10px;border:1px solid #dce6df;border-radius:12px;overflow:hidden;transition:background .15s,border-color .15s}
#layer-options .layer-select{flex:1;min-width:0;margin:0;border:0;border-radius:0;background:transparent}
#layer-options .layer-clear{flex:none;width:40px;height:44px;margin:0 4px 0 6px;padding:0;display:grid;place-items:center;text-align:center;border:0;border-radius:9px;font-size:26px;line-height:1;background:transparent}
#layer-options .layer-clear:hover{background:color-mix(in srgb,var(--layer-color) 15%,transparent)}
.layer-option.layer-active{background:color-mix(in srgb,var(--layer-color) 20%,transparent);border:2px solid var(--layer-color)}
.layer-active .layer-select{font-weight:bold}.layer-option:focus-within{outline:2px solid var(--layer-color);outline-offset:2px}
.active-book-navigation{display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0;color:var(--layer-color);border-left:1px solid #dce6df;padding-left:12px}
#active-book-title{min-width:0;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:bold}
.book-navigation-controls{display:flex;flex:none;align-items:center;gap:2px;direction:ltr;unicode-bidi:isolate}
.book-navigation-controls button{width:32px;height:38px;padding:0;background:transparent;border:1px solid color-mix(in srgb,var(--layer-color) 40%,transparent);border-radius:9px;font-size:20px;color:inherit}
.book-navigation-controls button:disabled{opacity:.35;cursor:default}#book-position{min-width:58px;text-align:center;font:13px var(--ui-font);direction:ltr}
body.dark .layer-option{border-color:#527362}body.dark .layer-option.layer-active{border-color:var(--layer-color);background:color-mix(in srgb,var(--layer-color) 27%,transparent)}
@media(max-width:620px){.active-book-navigation{flex-direction:row;gap:8px;padding-left:8px}#active-book-title{max-width:125px;font-size:12px}.book-navigation-controls button{width:28px;height:32px}#book-position{min-width:52px;font-size:12px}}
@media(max-width:370px){.actions{gap:5px}.active-book-navigation{padding-left:5px}#active-book-title{max-width:110px}.book-navigation-controls button{width:24px}.book-navigation-controls{gap:0}}

#book-position{width:auto;border:0;border-radius:7px;color:inherit;padding:0 3px}#book-position:not(:disabled):hover{background:color-mix(in srgb,var(--layer-color) 12%,transparent)}#book-position:disabled{opacity:.8}
#book-jump-number{width:100%;text-align:center;direction:ltr;margin-top:12px;font-size:18px}#book-jump-error{color:#b71c1c}#book-jump-error:empty{display:none}
#book-position{display:inline-flex;align-items:center;justify-content:center;direction:rtl;gap:1px;white-space:nowrap}.book-range-from,.book-range-to{unicode-bidi:isolate}
#layer-dialog{padding:0;max-height:90dvh;overflow:hidden;position:fixed}#layer-dialog[open]{display:flex;flex-direction:column}
.library-dialog-heading{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;background:#edf4ee;border-bottom:1px solid #dce6df}.library-dialog-heading h2{margin:0;font-size:19px;line-height:1.7;min-width:0}
#layer-dialog #layer-close{flex:none;display:grid;place-items:center;width:38px;height:38px;padding:0;margin:0;border:1px solid #389b7e;border-radius:10px;background:#389b7e;color:white;font-size:25px;line-height:1}
.library-dialog-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 18px 18px}.layer-option.layer-pending{background:#f4f5f4;border-color:#e3e7e4;color:#a0a7a2}.layer-pending .layer-swatch{background:#cbd0cc}.layer-pending .layer-select{color:inherit}.layer-pending:focus-within{outline-color:#adb6af}
#layer-toast{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);padding:7px 18px;border-radius:10px;background:#edf0ed;color:#627068;border:1px solid #d8dfd9;box-shadow:0 3px 14px #173c3120;font-size:13px;white-space:nowrap;pointer-events:none;z-index:2}
body.dark .library-dialog-heading{background:#273b2e;border-color:#405246}body.dark .layer-option.layer-pending{background:#25312a;border-color:#38473e;color:#849087}body.dark .layer-pending .layer-swatch{background:#637268}body.dark #layer-toast{background:#34433a;color:#d4dfd7;border-color:#526558}
@media(max-width:500px){.library-dialog-heading{padding:12px 14px}.library-dialog-heading h2{font-size:17px}.library-dialog-content{padding:4px 14px 14px}}

.education-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.education-heading h2{margin:0;line-height:1.6}.education-popup #education-close{width:36px;height:36px;flex:none;margin:0;padding:0;border:0;border-radius:8px;background:transparent;text-align:center;font-size:26px;line-height:1;color:inherit}#education-reference:empty{display:none}
.education-popup.book-reading{padding:0;width:calc(100% - 24px)}.book-reading .education-heading{position:sticky;top:0;z-index:1;background:var(--layer-color);color:#fff;padding:12px 18px}.book-reading #education-close:hover{background:#ffffff24}.book-reading #education-context{display:none}.book-reading #education-body{padding:0 20px 20px;white-space:normal}
.reader-material{padding:16px 0 4px}.reader-material+.reader-material{border-top:1px solid color-mix(in srgb,var(--layer-color) 25%,transparent);margin-top:10px}.book-reading p.reader-material-location{color:var(--layer-color);font-size:14px;line-height:1.8;font-weight:bold;margin:0 0 6px}.book-reading p.reader-related{color:var(--layer-color);font-size:13px;line-height:1.9;margin:0 0 14px}.reader-related-group{display:inline}.reader-related a{text-underline-offset:3px}
.book-reading .reader-material-text p{white-space:pre-wrap;font-size:17px;line-height:1.95;margin:0 0 14px}.reader-source-footer{border-top:2px solid color-mix(in srgb,var(--layer-color) 40%,transparent);margin-top:20px;padding-top:14px;overflow-wrap:anywhere}.reader-source-footer h3{color:var(--layer-color);font-size:15px;margin:0 0 12px}.reader-source-footer h4{font-size:13px;margin:12px 0 8px}.book-reading .reader-source-footer p,.reader-source-footer summary,.reader-source-footer a{font-size:13px;line-height:1.9}.reader-source-footer p{margin:6px 0}.reader-source+.reader-source{border-top:1px solid #dce6df;margin-top:14px;padding-top:12px}.reader-source-footer details{margin-top:12px}.reader-source-footer summary{cursor:pointer;color:var(--layer-color)}.reader-source-footer details>a{display:block;margin-top:8px}
@media(max-width:500px){.book-reading .education-heading{padding:10px 14px}.book-reading #education-body{padding:0 14px 16px}.book-reading .reader-material-text p{font-size:16px;line-height:1.9}.book-reading p.reader-material-location{font-size:13px}}

#book-next,#book-previous{display:grid;place-items:center;flex:none;line-height:1}
#book-next svg,#book-previous svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:620px){.actions{min-width:0}.brand{flex:none}#active-book-title{flex:1}#book-next svg,#book-previous svg{width:20px;height:20px}}
@media(max-width:370px){.actions{gap:5px}.active-book-navigation{gap:5px}.actions .icon,.actions #record,.actions #brain{width:32px;height:32px;flex:none}#active-book-title{font-size:11px}#book-position{min-width:48px;font-size:11px}#book-next svg,#book-previous svg{width:18px;height:18px}}

@media(min-width:1024px){
 #active-book-navigation{flex-direction:column;border:0;padding:8px 12px;margin:0;max-height:none;overflow:visible;width:100%;color:var(--layer-color,#738d81)}
 #active-book-title{display:none}
 #active-book-navigation .book-navigation-controls{width:100%;justify-content:center;gap:14px}
 #active-book-navigation .book-navigation-controls button{width:42px;height:42px;margin:0}
 #active-book-navigation #book-position{width:auto;min-width:70px}
 #reader-header #active-book-navigation{position:fixed;right:82px;top:12px;width:370px;background:var(--paper-bg,#f5f6f1);border-radius:12px}
 #layer-dialog>#active-book-navigation,.education-popup>#active-book-navigation{flex:none;position:sticky;top:0;z-index:3;background:#edf4ee;border-bottom:1px solid #dce6df;border-radius:0}
 .book-reading:has(>#active-book-navigation) .education-heading{top:59px}
 body.library-navigation-active{padding-right:474px}
 body.library-navigation-active main,body.library-navigation-active.reader-chrome-hidden main{width:calc(min(1105px, (100dvh - 28px)*1.19, 100vw - 502px) * var(--desktop-page-zoom,1))}
}

.reader-atlas-images{padding-top:14px}.reader-atlas-images h3{font-size:16px}.reader-atlas-images figure{margin:14px 0}.reader-atlas-images h4{margin:6px 0}.reader-atlas-photo{display:block;width:100%;padding:0;margin:0;border:0;background:transparent;cursor:zoom-in}.reader-atlas-photo img{display:block;width:100%;max-height:200px;object-fit:contain;border-radius:8px}.reader-atlas-photo.expanded{cursor:zoom-out}.reader-atlas-photo.expanded img{max-height:none}.reader-atlas-images figcaption,.book-reading .reader-atlas-images p{font-size:12px;line-height:1.8}.reader-atlas-credit{overflow-wrap:anywhere}
