body.mindsetpdf-library .mp-reader { width: min(100% - 24px, 1000px); padding-block: 20px 110px; --reader-muted: var(--mp-muted); }
body.mindsetpdf-library .mp-reader .mp-reader-heading { display: block; padding: 20px; margin-bottom: 18px; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: 14px; text-align: left; }
body.mindsetpdf-library .mp-reader .mp-reader-heading h1 { font-size: clamp(21px, 3vw, 30px); margin: 6px 0 10px; line-height: 1.35; }
body.mindsetpdf-library .mp-reader .mp-reader-heading p { font-size: 13px; margin: 0; color: var(--mp-muted); }
body.mindsetpdf-library .mp-reader .mp-reader-tags { margin: 14px 0 0; gap: 6px; }
body.mindsetpdf-library .mp-reader .mp-reader-tags a { min-height: 36px; padding: 6px 12px; border-radius: 20px; background: var(--library-soft); color: var(--library-gold); font-size: 12px; text-decoration: none; }
body.mindsetpdf-library .mp-reader .mp-reading-panel { border: 0; border-radius: 0; background: transparent; overflow: visible; }
body.mindsetpdf-library .mp-reader .mp-reading-viewport { height: auto; max-height: none; overflow-x: auto; padding: 0; background: transparent; }
body.mindsetpdf-library .mp-reader .mp-reader-pages { width: min(800px, 100%); max-width: none; margin-inline: auto; }
body.mindsetpdf-library .mp-reader .mp-reader-pages img { display: block; width: 100%; height: auto; }
body.mindsetpdf-library .mp-reader .images-carousel { margin: 0 0 16px; scroll-margin-top: 90px; }
body.mindsetpdf-library .mp-reader .mp-reader-pages :is(figcaption,.page-slide) { font-size: 12px; color: var(--mp-muted); }
body.mindsetpdf-library .mp-reader .mp-reader-controls { padding-block: 16px 28px; }
.mp-reader-dock { position: fixed; bottom: 0; left: 0; right: 0; z-index: 65; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; padding: 8px max(6px, calc((100vw - 800px) / 2)) calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--mp-surface); border-top: 1px solid var(--mp-line); }
.mp-reader-dock :is(a,button) { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; min-width: 0; min-height: 52px; padding: 4px 0; background: transparent; color: var(--mp-ink); border: 0; border-radius: 8px; font: inherit; font-size: 11px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.mp-reader-dock :is(a,button) > span { font-size: 25px; line-height: 24px; }
.mp-reader-dock .mp-reader-download { color: var(--library-gold); background: var(--library-soft); font-weight: 650; }
.mp-reader-dock button:disabled { opacity: .35; cursor: default; }
.mp-reader-dock :is(a,button):hover:not(:disabled) { background: var(--library-soft); }
.mp-reader-zoom-status { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
body.mp-reader-auto-controls .mindsetpdf-header { transition: transform .18s ease; }
body.mp-reader-controls-hidden .mindsetpdf-header { transform: translateY(-100%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    body.mp-reader-auto-controls .mindsetpdf-header { transition: none; }
}
@media(max-width: 760px) {
    body.mindsetpdf-library .mindsetpdf-footer { display: none; }
}
.mp-comments { border-top: 1px solid var(--mp-line); padding: 28px 0; margin-top: 16px; }
.mp-comments h2, .mp-reader-related h2 { font-size: 22px; margin: 0 0 20px; }
.mp-comment-rating { border: 0; padding: 0; margin: 0 0 16px; display: flex; gap: 8px; }
.mp-comment-rating legend, .mp-comment-label { font-size: 13px; margin-bottom: 8px; display: block; color: var(--mp-muted); }
.mp-comment-rating label { position: relative; cursor: pointer; }
.mp-comment-rating input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mp-comment-rating label > span { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--mp-line); border-radius: 12px; color: var(--mp-muted); background: var(--mp-surface); font-size: 26px; }
.mp-comment-rating .is-selected > span { background: var(--library-soft); color: var(--library-gold); border-color: var(--library-gold); }
.mp-comment-rating input:focus-visible + span { outline: 3px solid var(--library-gold); outline-offset: 3px; }
.mp-comments textarea { display: block; width: 100%; min-height: 130px; resize: vertical; padding: 14px; border: 1px solid var(--mp-line); border-radius: 12px; background: var(--mp-surface); color: var(--mp-ink); font: inherit; margin-bottom: 16px; }
.mp-comments [data-comment-submit] { width: 100%; background: var(--mp-green); color: var(--mp-green-dark); }
.mp-comments button:disabled { opacity: .6; cursor: wait; }
.mp-comments [hidden] { display: none; }
.mp-comments [data-comment-notice] { font-size: 14px; color: var(--mp-muted); }
.mp-comment-list { list-style: none; padding: 0; margin: 24px 0; }
.mp-comment { border-top: 1px solid var(--mp-line); padding-block: 18px; }
.mp-comment-heading { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mp-comment-heading time { font-size: 12px; color: var(--mp-muted); }
.mp-comment-stars { display: block; margin-top: 6px; color: var(--library-gold); letter-spacing: 2px; }
.mp-comment p { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mp-related-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px 18px; }
.mp-related-cover { position: relative; }
.mp-related-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--library-soft); color: var(--library-gold); font-size: 38px; font-weight: 600; }
.mp-related-cover img { position: relative; }
.mp-related-cover img[hidden] { display: none; }
@media(max-width: 760px) { .mp-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; } }
@media(max-width: 600px) {
    body.mindsetpdf-library .mp-reader { width: calc(100% - 12px); padding-top: 12px; }
    body.mindsetpdf-library .mp-reader .mp-reader-heading { margin-inline: 6px; padding: 14px; }
    .mp-reader-dock :is(a,button) { font-size: 10px; }
}
