.manga-reader .reader-heading { clear: both; padding: 22px 24px 16px; text-align: center; }
.manga-reader .reader-series-link { color: #8ce8b1; font-size: 14px; font-weight: 600; }
.manga-reader .reader-heading h1 { margin: 10px 0; color: #edf6f0; font-size: clamp(21px, 2.2vw, 30px); line-height: 1.4; }
.manga-reader .reader-heading p { margin: 0; color: #91aa9e; font-size: 13px; }
.manga-reader .reader-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
    max-width: 640px; margin: 8px auto 18px; padding: 20px;
    border: 1px solid #2e4b3e; border-radius: 16px;
    background: linear-gradient(125deg, #162e26, #101e27);
}
.reader-toolbar label { display: block; margin: 0 0 8px; color: #c5ddcf; font-size: 13px; font-weight: 500; }
.reader-size-setting { flex: 1 1 260px; min-width: 0; }
.reader-size-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.reader-size-label output { padding: 0 0 8px; color: #8ce8b1; font-size: 13px; font-weight: 600; }
.reader-size-controls { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.reader-size-controls input { flex: 1; min-width: 0; width: 100%; accent-color: #8ce8b1; cursor: pointer; }
.reader-size-controls button {
    flex-shrink: 0; min-height: 38px; padding: 8px 12px; border: 1px solid #3c5a4b;
    border-radius: 9px; background: #19362a; color: #b0eec5; font-size: 12px;
}
.reader-toolbar :focus-visible { outline: 2px solid #8ce8b1; outline-offset: 3px; }
.manga-reader .reader-chapter-nav { clear: both; max-width: 960px; margin: 0 auto 24px; }
.manga-reader .reader-chapter-nav .pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.manga-reader .reader-chapter-nav .pagination li { float: none; flex: 1 1 220px; max-width: 470px; }
.manga-reader .reader-chapter-nav .pagination li a {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    float: none; min-height: 46px; margin: 0; padding: 12px 16px;
    border: 1px solid #3a604a; border-radius: 11px; background: #19372b;
    color: #b2f0c7; font-size: 14px; line-height: 1.5; font-weight: 600;
}
.manga-reader .reader-chapter-nav .pagination li a:hover,
.manga-reader .reader-chapter-nav .pagination li a:focus { background: #27513b; color: #fff; border-color: #8ce8b1; }
.manga-reader .reader-chapter-nav .pagination li a span { padding: 2px 6px; border-radius: 5px; background: #534523; color: #f5d581 !important; font-size: 10px !important; }
#devtool-status .manga-reader .reading-content {
    width: var(--reader-image-width, 100%); max-width: 100%; padding: 0; margin-inline: auto;
}
.manga-reader .reading-content .okumaUstDivImageAlt { position: relative; width: 100%; margin: 0; }
/* Reserve the stored page ratio before the encrypted image arrives. Dimensions
   stay rendered (transparent) so the existing innerText reader can read them. */
.manga-reader .reader-image-reserved > .reader-image-dimension { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.manga-reader .reader-image-reserved > .reader-image-loading { position: absolute; top: 20px; left: 0; right: 0; color: #91aa9e; pointer-events: none; }

.manga-reader .reading-content .okumaUstDivImageAlt > img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 auto; }
.manga-reader .reading-content .okumaUstDiv { inset: 0; width: 100%; height: 100%; }
/* Keep banners in normal flow so the following image's click layer cannot cover them. */
.manga-reader .reading-content > .col-md-12 { float: none; clear: both; width: 100%; }
.reader-report[hidden], .reader-report [hidden] { display: none !important; }
.reader-report-trigger {
    position: fixed; right: 76px; bottom: 20px; z-index: 10000;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 44px; padding: 11px 16px; border: 1px solid #3b6950; border-radius: 12px;
    background: #19372b; color: #b2f0c7; box-shadow: 0 6px 22px rgba(0,0,0,.25);
    font: 600 13px/1.5 Roboto, sans-serif;
}
.reader-report-trigger:hover, .reader-report-trigger[aria-expanded="true"] { background: #28513c; border-color: #8ce8b1; }
.reader-report-panel {
    position: fixed; right: 24px; bottom: 78px; z-index: 10001;
    width: 360px; max-width: calc(100vw - 32px);
    max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto;
    padding: 22px; border: 1px solid #385b48; border-radius: 18px;
    background: linear-gradient(145deg,#142b24,#0e1b24 65%);
    box-shadow: 0 18px 60px rgba(0,0,0,.5); color: #e1f1e7; text-align: left;
    scrollbar-width: thin; scrollbar-color: #385b48 #0e1b24;
}
.reader-report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.reader-report-eyebrow { color: #8ce8b1; font-size: 11px; letter-spacing: .5px; }
.reader-report-header h2 { margin: 6px 0 0; color: #edf6f0; font-size: 21px; line-height: 1.4; }
.reader-report-close {
    display: inline-flex; justify-content: center; align-items: center;
    width: 36px; height: 36px; flex-shrink: 0; border: 1px solid #345445;
    border-radius: 9px; background: #183127; color: #a9d3b9;
}
.reader-report-description { margin: 14px 0 20px; color: #93ada0; font-size: 13px; line-height: 1.7; }
.reader-report-form label { display: block; margin: 0 0 8px; color: #bfd8c9; font-size: 13px; font-weight: 500; }
.reader-report-form select, .reader-report-form textarea {
    display: block; width: 100%; min-height: 44px; margin: 0 0 16px; padding: 11px 12px;
    border: 1px solid #365346; border-radius: 10px; background: #09191f; color: #e1f1e7;
    font: 400 13px/1.6 Roboto, sans-serif; box-shadow: none;
}
.reader-report-form textarea { min-height: 110px; resize: vertical; }
.reader-report-form textarea::placeholder { color: #7e9a8c; }
.reader-report-actions { display: flex; gap: 10px; }
.reader-report-actions button { flex: 1; min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.reader-report-cancel { border: 1px solid #365346; background: #13271f; color: #b7d2c2; }
.reader-report-submit { border: 1px solid #8ce8b1; background: #8ce8b1; color: #112b1c; }
.reader-report-submit:hover { background: #adf0c6; }
.reader-report-hide { display: block; margin: 16px auto 0; padding: 6px; border: 0; background: transparent; color: #8eaa9c; font-size: 12px; text-decoration: underline; }
.reader-report :focus-visible { outline: 2px solid #8ce8b1; outline-offset: 3px; }
@media (max-width: 767px) {
    .manga-reader .reader-heading { padding: 18px 10px 14px; }
    .manga-reader .reader-toolbar { margin: 8px 0 14px; padding: 16px; gap: 16px; }
    .manga-reader .reader-chapter-nav .pagination { gap: 8px; }
    .manga-reader .reader-chapter-nav .pagination li { flex: 1 1 120px; }
    .manga-reader .reader-chapter-nav .pagination li a { padding: 10px 8px; font-size: 12px; flex-wrap: wrap; gap: 4px; }
    .reader-report-trigger { width: 44px; padding: 10px; right: 74px; font-size: 17px; }
    .reader-report-trigger span { display: none; }
    .reader-report-panel { right: 16px; bottom: 76px; padding: 18px; }
}
