.lmh-protected-output {
    width: 100%;
    margin: 0 !important;
    padding: 0;
    box-sizing: border-box;
}

.lmh-toolbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    min-height: 46px;
    padding: .4rem .65rem;
    background: #9a9a9a14;
    color: #6d6d6d;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    box-sizing: border-box;
}

.lmh-zoom-button,
.lmh-zoom-button[disabled] {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 32px !important;
    min-width: 40px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(0, 0, 0, .2) !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #5f6368 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
}

.lmh-zoom-button:hover,
.lmh-zoom-button:focus-visible {
    background: #f4f5f6 !important;
    color: #343a40 !important;
}

.lmh-zoom-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.lmh-zoom-button:disabled {
    opacity: .45;
    cursor: default;
    background: #fff !important;
    color: #7b7f83 !important;
}

.lmh-zoom-label {
    min-width: 48px;
    text-align: center;
    font-size: .95rem;
    font-variant-numeric: tabular-nums;
}

.lmh-page-count {
    margin-left: auto;
    padding-right: .15rem;
    font-size: .95rem;
    white-space: nowrap;
}

.lmh-viewport {
    width: 100%;
    height: var(--lmh-desktop-height, 485px);
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.lmh-pages {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    width: var(--lmh-zoom, 100%);
    min-width: 100%;
    padding: 12px 14px 16px;
    box-sizing: border-box;
}

.lmh-page {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

.lmh-tile {
    position: absolute;
    display: block;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: fill;
    user-select: none;
    -webkit-user-drag: none;
}

.lmh-shield {
    position: absolute;
    z-index: 5;
    inset: 0;
    background: transparent;
}

.lmh-disable-interactions {
    -webkit-touch-callout: none;
    user-select: none;
}

.lmh-access-message {
    padding: .9rem 1rem;
    border-left: 4px solid #6b7280;
    background: #f3f4f6;
}

@media (max-width: 575px) {
    .lmh-viewport {
        height: var(--lmh-mobile-height, 300px);
    }

    .lmh-toolbar {
        gap: .35rem;
        min-height: 44px;
        padding: .35rem .45rem;
    }

    .lmh-zoom-button,
    .lmh-zoom-button[disabled] {
        flex-basis: 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        height: 32px !important;
    }

    .lmh-page-count,
    .lmh-zoom-label {
        font-size: .88rem;
    }

    .lmh-pages {
        gap: 1rem;
        padding: 8px 10px 12px;
    }
}
