button.doc-open {
    background: transparent;
    color: inherit;
    border: 0;
    padding: 0;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.pdf-viewer {
    width: min(1080px, calc(100vw - 28px));
    height: calc(100vh - 28px);
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #20242b;
    color: #f4f6f8;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}
.pdf-viewer[open] { display: flex; flex-direction: column; }
.pdf-viewer::backdrop { background: rgba(12, 16, 22, .78); }
.pdf-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}
.pdf-bar strong { font-weight: 650; }
.pdf-actions { display: flex; gap: 8px; align-items: center; }
.pdf-actions button,
.pdf-actions a {
    background: #e7edf1;
    color: #1c2430;
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}
.pdf-actions .quiet { background: transparent; color: #f4f6f8; }
.pdf-pages { flex: 1; overflow: auto; background: #525659; padding: 16px; }
.pdf-pages canvas,
.pdf-pages img {
    display: block;
    max-width: 100%;
    margin: 0 auto 12px;
    background: white;
}
.pdf-status { margin: 0; padding: 18px; color: #f4f6f8; }
