.pdf-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    width: 100%;
}

.pdf-workbench.has-files {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
}

.pdf-panel,
.pdf-stage {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 19, 27, .76);
    box-shadow: var(--shadow);
}

.pdf-panel {
    width: 100%;
}

.pdf-stage[hidden],
.pdf-progress[hidden],
.pdf-download[hidden],
.pdf-alert[hidden],
.pdf-result-stats[hidden] {
    display: none !important;
}

.pdf-dropzone {
    min-height: 245px;
    border-color: rgba(215, 169, 77, .32);
}

.pdf-dropzone .file-picker-icon {
    color: var(--orange-2);
}

.pdf-dropzone.is-dragging {
    border-color: var(--orange);
    background: rgba(244, 124, 32, .09);
}

.pdf-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 720px);
    justify-self: center;
}

.pdf-controls.pdf-controls-one {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 560px);
}

@media (min-width: 621px) {
    .pdf-workbench[data-pdf-tool="compress"] .pdf-compress-controls {
        grid-template-columns: minmax(0, 420px);
        justify-content: center;
        width: min(100%, 520px);
    }

    .pdf-workbench[data-pdf-tool="compress"] .pdf-compress-level-control {
        width: 100%;
        text-align: center;
    }

    .pdf-workbench[data-pdf-tool="compress"] .pdf-modern-menu-options button {
        text-align: center;
    }
}

.pdf-control {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(8, 9, 13, .42);
    font-size: .8rem;
}

.pdf-control > span {
    color: var(--muted);
    font-weight: 800;
}

/* The merge filename is short by nature; keep its desktop field compact and centred. */
.pdf-workbench[data-pdf-tool="merge"] .pdf-controls:has([data-pdf-output-name]) {
    width: min(100%, 390px);
    max-width: 390px;
}

.pdf-workbench .pdf-control:has([data-pdf-output-name]) {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
}

.pdf-workbench [data-pdf-output-name] {
    min-height: 44px;
    text-align: center;
}

.pdf-control input,
.pdf-control select {
    width: 100%;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    color: var(--text);
    background: var(--bg-2);
    font: inherit;
    font-weight: 700;
}

.pdf-control input:focus,
.pdf-control select:focus {
    border-color: var(--orange);
}

.pdf-modern-menu {
    position: relative;
    width: 100%;
}

.pdf-modern-menu[open] {
    z-index: 35;
}

.pdf-modern-menu summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid rgba(215, 169, 77, .34);
    border-radius: 10px;
    color: var(--text);
    background: linear-gradient(145deg, rgba(20, 24, 33, .98), rgba(10, 13, 19, .94));
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
    font-size: .77rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.pdf-modern-menu summary::-webkit-details-marker {
    display: none;
}

.pdf-modern-menu summary svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--orange-2);
    transition: transform .16s ease;
}

.pdf-workbench[data-pdf-tool="compress"] .pdf-compress-level-control .pdf-modern-menu summary {
    position: relative;
    justify-content: center;
    padding-inline: 34px;
    text-align: center;
}

.pdf-workbench[data-pdf-tool="compress"] .pdf-compress-level-control .pdf-modern-menu summary > span {
    width: 100%;
    text-align: center;
}

.pdf-workbench[data-pdf-tool="compress"] .pdf-compress-level-control .pdf-modern-menu summary > svg {
    position: absolute;
    inset-inline-end: 10px;
}

.pdf-modern-menu[open] summary {
    border-color: rgba(255, 157, 66, .78);
    background: rgba(244, 124, 32, .1);
    box-shadow: 0 0 0 3px rgba(244, 124, 32, .1);
}

.pdf-modern-menu[open] summary svg {
    transform: rotate(180deg);
}

.pdf-modern-menu-options {
    position: absolute;
    z-index: 36;
    inset-block-start: calc(100% + 5px);
    inset-inline: 0;
    display: grid;
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(215, 169, 77, .42);
    border-radius: 10px;
    background: #171d28;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .42);
}

.pdf-modern-menu-options button {
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    text-align: start;
    cursor: pointer;
}

.pdf-modern-menu-options button:hover,
.pdf-modern-menu-options button:focus-visible,
.pdf-modern-menu-options button.is-active {
    outline: 0;
    color: #1b1208;
    background: linear-gradient(135deg, #ff7d1a, #ffab2e);
}

.pdf-controls > .pdf-control:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.pdf-note,
.pdf-limit {
    width: min(100%, 720px);
    justify-self: center;
    margin: 0;
}

.pdf-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.pdf-structured-stage-head,
.pdf-merge-stage-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.pdf-stage-title,
.pdf-stage-summary {
    white-space: nowrap;
}

.pdf-stage-summary {
    justify-self: center;
    min-width: 0;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    font-size: .75rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-summary-text,
.pdf-summary-count {
    unicode-bidi: isolate;
}

.pdf-summary-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-summary-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.pdf-summary-count b {
    color: var(--text);
    font: inherit;
    font-weight: 800;
}

.pdf-summary-separator {
    flex: 0 0 auto;
    opacity: .65;
}

.pdf-stage-head > span,
.pdf-stage-head button,
.pdf-file-actions,
.pdf-page-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pdf-stage-head > span {
    min-width: 0;
    color: var(--text);
}

.pdf-stage-head svg {
    width: 18px;
    color: var(--orange-2);
}

.pdf-stage-head button,
.pdf-icon-button {
    border: 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.pdf-stage-head button:hover,
.pdf-icon-button:hover {
    color: var(--orange-2);
}

.pdf-file-list {
    display: grid;
    gap: 8px;
    max-height: 310px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.pdf-file-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    background: rgba(8, 9, 13, .38);
}

.pdf-file-item:has(.pdf-file-order) {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.pdf-file-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: 1px solid rgba(244, 124, 32, .45);
    border-radius: 8px;
    color: var(--orange-2);
    background: rgba(244, 124, 32, .08);
    font-size: .74rem;
    font-weight: 800;
}

.pdf-file-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.pdf-file-info b,
.pdf-file-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-file-info b {
    color: var(--text);
    font-size: .82rem;
}

.pdf-file-info span {
    color: var(--muted);
    font-size: .72rem;
}

.pdf-file-actions button,
.pdf-page-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
}

.pdf-file-actions button:hover,
.pdf-page-actions button:hover {
    border-color: rgba(244, 124, 32, .5);
    color: var(--orange-2);
}

.pdf-file-actions button:disabled {
    cursor: default;
    opacity: .35;
}

.pdf-file-actions svg,
.pdf-page-actions svg {
    width: 15px;
    height: 15px;
}

.pdf-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
    max-height: 520px;
    overflow: auto;
}

.pdf-page-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(8, 9, 13, .42);
}

.pdf-page-order-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    color: var(--text);
    font-size: .74rem;
}

.pdf-page-order-label strong {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(244, 124, 32, .48);
    border-radius: 7px;
    color: var(--orange-2);
    background: rgba(244, 124, 32, .08);
    font-size: .7rem;
}

.pdf-page-preview-trigger {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    background: #fff;
    cursor: zoom-in;
}

.pdf-page-preview-trigger:hover,
.pdf-page-preview-trigger:focus-visible {
    border-color: rgba(244, 124, 32, .72);
    outline: 0;
}

.pdf-page-preview-trigger > span {
    position: absolute;
    inset-inline-end: 6px;
    inset-block-end: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    color: #fff;
    background: rgba(8, 11, 16, .82);
    font-size: .59rem;
    font-weight: 800;
    pointer-events: none;
}

.pdf-page-preview-trigger > span svg {
    width: 12px;
    height: 12px;
}

.pdf-page-card canvas,
.pdf-image-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.pdf-page-card > b {
    overflow: hidden;
    color: var(--text);
    font-size: .74rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-page-actions {
    justify-content: center;
    gap: 5px;
}

.pdf-page-card .pdf-page-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
}

.pdf-page-card .pdf-page-actions button {
    width: 100%;
    height: 28px;
}

.pdf-page-preview-modal {
    position: fixed;
    z-index: 39;
    inset-block-start: var(--topbar-height);
    inset-block-end: 0;
    inset-inline-start: clamp(210px, 17vw, 280px);
    inset-inline-end: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(5, 7, 11, .76);
    overscroll-behavior: contain;
    touch-action: none;
}

.pdf-page-preview-modal[hidden] {
    display: none;
}

.pdf-page-preview-dialog {
    display: grid;
    gap: 10px;
    width: min(760px, 100%);
    max-height: calc(100dvh - var(--topbar-height) - 36px);
    padding: 14px;
    overflow: auto;
    border: 1px solid rgba(244, 124, 32, .42);
    border-radius: 15px;
    background: #121720;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .52);
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.pdf-page-preview-dialog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.pdf-page-preview-dialog > header strong {
    color: var(--text);
    font-size: .86rem;
}

.pdf-page-preview-dialog > header button {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(8, 11, 16, .7);
    cursor: pointer;
}

.pdf-page-preview-dialog > header button:hover,
.pdf-page-preview-dialog > header button:focus-visible {
    border-color: rgba(244, 124, 32, .6);
    color: var(--orange-2);
    outline: 0;
}

.pdf-page-preview-dialog > header svg {
    width: 16px;
    height: 16px;
}

.pdf-page-preview-canvas {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 12px;
    overflow: auto;
    border-radius: 10px;
    background: #080b10;
}

.pdf-page-preview-canvas img {
    display: block;
    max-width: 100%;
    max-height: min(68vh, 720px);
    object-fit: contain;
    transform-origin: center;
}

/* Do not change the body's overflow while the dialog is open. On narrow
   layouts the header and sidebar are sticky children of the page scroller;
   changing that scroller made Chrome repaint them only after hovering. */
body.has-pdf-page-preview .topbar,
body.has-pdf-page-preview .sidebar,
body.has-pdf-page-preview .site-footer {
    z-index: 41;
    opacity: 1;
    visibility: visible;
    filter: none;
    isolation: isolate;
}

.pdf-action-stack {
    display: grid;
    gap: 10px;
}

.pdf-merge-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
}

.pdf-action-stack .pdf-merge-action-row .primary-action {
    width: auto;
    margin: 0;
}

.pdf-merge-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgba(244, 124, 32, .24);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(244, 124, 32, .035);
    font-size: .68rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.pdf-merge-upgrade:hover {
    border-color: rgba(244, 124, 32, .55);
    color: var(--orange-2);
    background: rgba(244, 124, 32, .08);
}

.pdf-merge-upgrade svg {
    width: 13px;
    height: 13px;
}

.pdf-action-stack .primary-action,
.pdf-download {
    width: 100%;
    margin: 0;
}

@media (min-width: 621px) {
    .pdf-workbench[data-pdf-tool="merge"] .pdf-download span {
        font-size: calc(1rem - 1px);
    }
}

.pdf-progress {
    width: 100%;
    margin: 0;
}

.pdf-result-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pdf-result-stats > div {
    display: grid;
    gap: 4px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(8, 9, 13, .38);
}

.pdf-result-stats span {
    color: var(--muted);
    font-size: .68rem;
}

.pdf-result-stats b {
    color: var(--text);
    font-size: .82rem;
    direction: ltr;
}

.pdf-alert {
    width: min(100%, 720px);
    justify-self: center;
}

@media (max-width: 960px) {
    .pdf-workbench.has-files {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdf-page-preview-modal {
        inset-inline-start: clamp(60px, 17vw, 72px);
    }
}

@media (max-width: 620px) {
    .pdf-workbench[data-pdf-tool="merge"] .pdf-controls:has([data-pdf-output-name]) {
        width: 100%;
        max-width: none;
    }

    .pdf-panel,
    .pdf-stage {
        padding: 12px;
    }

    .pdf-dropzone {
        /* Match the compact phone picker used by the other upload tools. */
        min-height: 70px;
        padding: 11px 12px;
    }

    .pdf-workbench .pdf-limit {
        width: 100%;
        min-height: 34px;
        padding: 5px 7px;
        gap: 5px;
        justify-content: center;
    }

    .pdf-workbench .pdf-limit span {
        gap: 5px;
        font-size: clamp(.57rem, 2.25vw, .68rem);
        line-height: 1.25;
        text-align: center;
    }

    .pdf-workbench .pdf-limit i {
        width: 13px;
        height: 13px;
        flex: 0 0 auto;
    }

    .pdf-controls,
    .pdf-result-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdf-workbench[data-pdf-tool="from-images"] .pdf-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .pdf-workbench[data-pdf-tool="from-images"] .pdf-control {
        min-width: 0;
        padding: 7px 6px;
        gap: 5px;
        font-size: .7rem;
        text-align: center;
    }

    .pdf-workbench[data-pdf-tool="from-images"] .pdf-controls > .pdf-control:last-child {
        grid-column: 1 / -1;
        width: 100%;
        padding: 0;
        border: 0;
        background: transparent;
        text-align: center;
    }

    .pdf-workbench[data-pdf-tool="from-images"] .image-modern-select-summary {
        min-height: 38px;
        padding: 5px 28px;
        font-size: .68rem;
    }

    .pdf-workbench[data-pdf-tool="from-images"] .image-modern-select-summary > svg {
        inset-inline-end: 8px;
        width: 14px;
        height: 14px;
    }

    .pdf-workbench[data-pdf-tool="from-images"] [data-pdf-output-name] {
        width: 100%;
        min-height: 42px;
    }

    .pdf-workbench[data-pdf-tool="to-images"] .pdf-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .pdf-workbench[data-pdf-tool="to-images"] .pdf-control {
        gap: 4px;
        padding: 6px 3px;
        font-size: clamp(.55rem, 2.15vw, .67rem);
        text-align: center;
    }

    .pdf-workbench[data-pdf-tool="to-images"] .pdf-control > span {
        white-space: nowrap;
    }

    .pdf-workbench[data-pdf-tool="to-images"] .pdf-control select {
        min-height: 36px;
        padding: 0 4px;
        font-size: .68rem;
        text-align: center;
    }

    .pdf-workbench[data-pdf-tool="to-images"] .image-modern-select-summary {
        min-height: 36px;
        padding: 5px 23px;
        font-size: .66rem;
    }

    .pdf-workbench[data-pdf-tool="to-images"] .image-modern-select-summary > svg {
        inset-inline-end: 7px;
        width: 13px;
        height: 13px;
    }

    .pdf-workbench[data-pdf-tool="to-images"] .image-modern-select-options {
        min-width: 100%;
        padding: 4px;
    }

    .pdf-workbench[data-pdf-tool="to-images"] .image-modern-select-options button {
        min-height: 30px;
        padding-inline: 4px;
        font-size: .64rem;
    }

    .pdf-workbench[data-pdf-tool="to-images"] .pdf-control:last-child {
        grid-column: 1 / -1;
        padding: 0;
        border: 0;
        background: transparent;
        text-align: center;
    }

    .pdf-controls > .pdf-control:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .pdf-pages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pdf-workbench[data-pdf-tool="organize"] .pdf-pages-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdf-workbench[data-pdf-tool="organize"] .pdf-page-preview-trigger {
        justify-self: center;
        width: min(50%, 190px);
    }

    .pdf-stage-head {
        align-items: center;
    }

    .pdf-structured-stage-head,
    .pdf-merge-stage-head {
        gap: 7px;
        padding-bottom: 9px;
    }

    .pdf-structured-stage-head .pdf-stage-title,
    .pdf-merge-stage-head .pdf-stage-title {
        gap: 4px;
        font-size: clamp(.66rem, 2.8vw, .77rem);
    }

    .pdf-structured-stage-head .pdf-stage-title svg,
    .pdf-merge-stage-head .pdf-stage-title svg {
        width: 15px;
        height: 15px;
    }

    .pdf-structured-stage-head .pdf-stage-summary,
    .pdf-merge-stage-head .pdf-stage-summary {
        font-size: clamp(.58rem, 2.45vw, .69rem);
    }

    .pdf-structured-stage-head [data-pdf-clear],
    .pdf-merge-stage-head [data-pdf-clear] {
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, .025);
    }

    .pdf-structured-stage-head [data-pdf-clear] svg,
    .pdf-merge-stage-head [data-pdf-clear] svg {
        width: 16px;
        height: 16px;
    }

    .pdf-structured-stage-head .pdf-clear-label,
    .pdf-merge-stage-head .pdf-clear-label {
        display: none;
    }

    .pdf-file-item:has(.pdf-file-order) {
        gap: 7px;
        padding-inline: 8px;
    }

    .pdf-file-order {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        font-size: .68rem;
    }

    .pdf-merge-action-row {
        gap: 6px;
    }

    .pdf-action-stack .pdf-merge-action-row .primary-action {
        min-width: 0;
        padding-inline: 10px;
        font-size: clamp(.68rem, 2.75vw, .78rem);
    }

    .pdf-merge-upgrade {
        gap: 3px;
        padding: 5px 6px;
        font-size: clamp(.55rem, 2.25vw, .65rem);
    }

    .pdf-workbench[data-pdf-tool="split"] .pdf-controls {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
        gap: 6px;
    }

    .pdf-workbench[data-pdf-tool="split"] .pdf-control {
        min-width: 0;
        gap: 5px;
        padding: 7px 6px;
    }

    .pdf-workbench[data-pdf-tool="split"] .pdf-control > span {
        font-size: clamp(.6rem, 2.5vw, .7rem);
        white-space: nowrap;
    }

    .pdf-workbench[data-pdf-tool="split"] .pdf-control:nth-child(3) {
        grid-column: 1 / -1;
    }

    .pdf-workbench[data-pdf-tool="split"] .pdf-control input,
    .pdf-workbench[data-pdf-tool="split"] .pdf-modern-menu summary {
        min-height: 36px;
        font-size: clamp(.58rem, 2.35vw, .68rem);
    }

    .pdf-workbench[data-pdf-tool="split"] .pdf-modern-menu summary {
        padding-inline: 7px;
    }

    .pdf-workbench[data-pdf-tool="split"] .pdf-modern-menu-options button {
        font-size: clamp(.57rem, 2.3vw, .67rem);
    }

    .pdf-page-order-label {
        gap: 4px;
        font-size: .66rem;
    }

    .pdf-page-order-label strong {
        width: 21px;
        height: 21px;
        font-size: .63rem;
    }

    .pdf-page-preview-trigger > span {
        inset-inline-end: 4px;
        inset-block-end: 4px;
        padding: 3px 5px;
        font-size: .53rem;
    }

    .pdf-page-preview-modal {
        inset-inline-start: clamp(52px, 15vw, 60px);
        padding: 9px;
    }

    .pdf-page-preview-dialog {
        width: min(100%, 340px);
        max-height: calc(100dvh - var(--topbar-height) - 18px);
        padding: 10px;
        border-radius: 12px;
    }

    .pdf-page-preview-canvas {
        min-height: 140px;
        padding: 8px;
    }

    .pdf-page-preview-canvas img {
        max-height: min(58vh, 520px);
    }
}
