.de-paper {
    --de-ink: #172333;
    --de-muted: #697586;
    --de-line: #e5e9ef;
    --de-blue: #245b91;
    --de-paper: #ffffff;
    --de-soft: #f5f7fa;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    color: var(--de-ink);
    background: var(--de-paper);
    font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border: 1px solid var(--de-line);
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}
.de-paper *, .de-paper *::before, .de-paper *::after { box-sizing: border-box; }
.de-layout { display: block; width: 100%; max-width: 100%; }
.de-reader-panel { display: block; width: 100%; max-width: 100%; min-width: 0; background: #f0f2f5; border: 0; }
.de-edition-bar { min-height: 76px; padding: 14px 19px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fff; border-bottom: 1px solid var(--de-line); }
.de-current-edition { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.de-live-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #24966b; box-shadow: 0 0 0 4px #e5f5ee; flex: 0 0 auto; }
.de-current-edition > div { min-width: 0; }
.de-overline { color: #8793a2; font-size: 9px; }
.de-current-title { margin: 2px 0 1px; font-size: 14px; line-height: 1.35; font-weight: 750; overflow-wrap: anywhere; }
.de-current-date { color: var(--de-muted); font-size: 11px; }
.de-reader-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.de-reader-actions a { text-decoration: none; border-radius: 6px; padding: 8px 11px; font-size: 11px; font-weight: 700; }
.de-open-tab { color: #244d76; background: #edf3f8; }
.de-download { color: #fff; background: #245b91; }
.de-viewer-wrap { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1 / 1.4142; min-height: 0; padding: 12px; }
.de-pdf-frame { display: block; width: 100%; height: 100%; border: 0; background: #dfe3e8; box-shadow: 0 2px 12px rgba(24, 39, 56, .10); }
.de-reader-foot { min-height: 39px; padding: 9px 17px; display: flex; justify-content: space-between; gap: 10px; color: #778292; background: #fff; border-top: 1px solid var(--de-line); font-size: 10px; }
.de-file-count { white-space: nowrap; font-weight: 700; }
.de-archive-heading h3 { margin: 3px 0 0; font-size: 19px; line-height: 1.2; font-weight: 750; }
.de-search-wrap > span { font-size: 20px; line-height: 1; }
.de-edition-item:hover { background: #f6f8fa; border-color: #e7ebf0; }
.de-edition-item.is-active .de-empty { padding: 70px 25px; text-align: center; background: #f8fafc; }
.de-empty-icon { width: 52px; height: 62px; margin: 0 auto 15px; display: grid; place-items: end center; padding-bottom: 10px; color: #b64b4b; font-size: 11px; font-weight: 900; border: 1px solid #d7dee6; border-radius: 5px; background: #fff; }
.de-empty h3 { margin: 0 0 7px; font-size: 18px; }
.de-empty p { margin: 0; color: #788493; font-size: 13px; }
@media (max-width: 900px) {
    }
@media (max-width: 680px) {
    .de-paper {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
    .de-layout,
    .de-reader-panel,
    .de-viewer-wrap,
    .de-pdf-frame {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
    }
    .de-reader-panel { order: 1; border-right: 0; }
    .de-edition-bar { padding: 12px; align-items: flex-start; }
    .de-reader-actions { gap: 5px; }
    .de-reader-actions a { padding: 7px 8px; font-size: 10px; }
    .de-viewer-wrap { width: 100%; height: auto; aspect-ratio: 1 / 1.4142; min-height: 0; padding: 0; }
    .de-reader-foot { padding: 8px 11px; font-size: 9px; }
    }
@media (max-width: 390px) {
    .de-reader-actions { flex-direction: column; align-items: stretch; }
    .de-reader-actions a { text-align: center; }
    .de-reader-foot { align-items: flex-start; }
}

@media (max-width: 680px) {
    .de-paper {
        display: block;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-radius: 0;
        overflow: hidden;
    }
    .de-layout,
    .de-reader-panel,
    .de-viewer-wrap,
    .de-pdf-frame {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .de-viewer-wrap {
        height: auto !important;
        aspect-ratio: 1 / 1.4142;
        min-height: 0 !important;
        padding: 0 !important;
    }
    .de-pdf-frame { height: 100%; }
    }

.de-edition-controls {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid var(--de-line);
}
.de-edition-controls button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce3ea;
    border-radius: 50%;
    background: #fff;
    color: #244d76;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}
.de-edition-controls button:disabled { opacity: .35; cursor: default; }
.de-edition-indicator { color: #687586; font-size: 12px; }
.de-edition-current, .de-edition-total { color: #172333; font-weight: 800; }

/* Mobile: prevent the page and embedded PDF frame from exceeding the viewport. */
@media (max-width: 680px) {
    .de-paper {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-radius: 0;
        overflow: hidden;
    }
    .de-layout, .de-reader-panel, .de-viewer-wrap, .de-pdf-frame {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .de-viewer-wrap {
        height: auto !important;
        aspect-ratio: 1 / 1.4142;
        min-height: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .de-pdf-frame {
        display: block;
        height: 100% !important;
        overflow: hidden !important;
        border: 0 !important;
    }
    .de-reader-panel, .de-paper { overflow-x: clip !important; }
}

/* PDF.js renderer: each page scales to the reader's actual content width. */
.de-viewer-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #dfe3e8;
}
.de-pdf-document {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 12px;
    background: #e9edf1;
}
.de-pdf-page {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(24, 39, 56, .12);
}
.de-pdf-loading, .de-pdf-error {
    width: 100%;
    padding: 32px 16px;
    text-align: center;
    color: #687586;
    background: #fff;
    font-size: 13px;
}
.de-pdf-error { color: #9a3535; }
@media (max-width: 680px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    .de-paper {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        border: 0 !important;
        border-radius: 0 !important;
        overflow-x: hidden !important;
    }
    .de-layout, .de-reader-panel, .de-viewer-wrap, .de-pdf-document {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
    .de-pdf-document { padding: 0 !important; }
    .de-pdf-page {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto 8px;
        box-shadow: none;
    }
    .de-edition-bar {
        min-width: 0;
        width: 100%;
        padding: 10px 12px;
        gap: 8px;
    }
    .de-current-edition { min-width: 0; flex: 1 1 auto; }
    .de-reader-actions { flex: 0 0 auto; }
    .de-reader-actions a { white-space: nowrap; }
}

/* Stable vertical document: first page appears immediately; remaining pages flow below. */
.de-viewer-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #e9edf1;
}
.de-pdf-document {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 10px;
    background: #e9edf1;
    overflow-anchor: none;
}
.de-pdf-page-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100px;
    margin: 0 auto 12px;
    color: #8793a2;
    background: #fff;
    font-size: 11px;
    box-shadow: 0 2px 10px rgba(24, 39, 56, .08);
}
.de-pdf-page-placeholder.is-rendered {
    display: block;
    min-height: 0;
    background: #fff;
}
.de-pdf-page-placeholder.has-error {
    color: #9a3535;
    padding: 20px;
}
.de-pdf-page {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    background: #fff;
}
@media (max-width: 680px) {
    .de-paper {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        border: 0 !important;
        border-radius: 0 !important;
        overflow-x: hidden !important;
    }
    .de-layout, .de-reader-panel, .de-viewer-wrap, .de-pdf-document {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
    .de-pdf-document { padding: 0 !important; }
    .de-pdf-page-placeholder { margin-bottom: 8px; box-shadow: none; }
    .de-pdf-page { width: 100% !important; max-width: 100% !important; }
}
