.ellib-search-band .search-band-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.ellib-search-band .service-quality-survey-btn {
    position: static;
    transform: none;
    flex-shrink: 0;
}

.ellib-search {
    display: flex;
    gap: 0;
    align-items: stretch;
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}

.ellib-search-band .ellib-search {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.ellib-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line, #ccc);
    border-right: 0;
    padding: 0.7rem 2.2rem 0.7rem 0.9rem;
    font: inherit;
    background: #fff;
}

.ellib-search button {
    border: 0;
    background: #2f5d50;
    color: #fff;
    padding: 0 1.4rem;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 900px) {
    .ellib-search-band .search-band-inner {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .ellib-search-band .ellib-search {
        flex: 1 1 100%;
        max-width: none;
    }

    .ellib-search-band .service-quality-survey-btn {
        position: static;
        margin-left: auto;
    }
}

.ellib-search-clear {
    position: absolute;
    right: 108px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1;
}

.ellib-count {
    margin: 0 0 1rem;
    text-align: center;
}

.ellib-menu {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.ellib-menu-title {
    font-weight: 700;
    padding: 0.35rem 0.2rem 0.15rem;
}

.ellib-menu-divider {
    list-style: none;
    margin: 0 0 0.45rem;
    padding: 0;
}

.ellib-menu-divider hr {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line, #d8d8d0);
}

.ellib-menu a {
    display: block;
    position: relative;
    padding: 0.35rem 0.5rem 0.35rem 0.75rem;
    color: #777;
    text-decoration: none;
    border-radius: 0 4px 4px 0;
    transition:
        color 0.22s ease,
        padding-left 0.22s ease,
        background-color 0.22s ease;
}

.ellib-menu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.ellib-menu a:hover,
.ellib-menu a:focus-visible {
    color: var(--accent);
    padding-left: 1rem;
    background-color: rgba(73, 158, 70, 0.1);
}

.ellib-menu a:hover::before,
.ellib-menu a:focus-visible::before {
    transform: scaleY(1);
}

.ellib-menu a[aria-current="page"] {
    color: var(--accent);
    font-weight: 700;
    background-color: #fff;
    padding-left: 1rem;
}

.ellib-menu a[aria-current="page"]::before {
    transform: scaleY(1);
}

@media (prefers-reduced-motion: reduce) {
    .ellib-menu a,
    .ellib-menu a::before {
        transition: none;
    }
}

.ellib-children {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.ellib-children a {
    color: inherit;
}

.ellib-description {
    margin: 0 0 1rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--line, #ccc);
}

.ellib .catalog-card.ellib-card {
    grid-template-columns: 40px 80px minmax(0, 1fr);
    margin-bottom: 0.75rem;
}

.ellib-access {
    margin: 0 0 1rem;
}

.ellib-issue-title {
    font-family: "PT Serif", serif;
    font-size: 1.6rem;
    margin: 0 0 1rem;
}

.ellib-frame-panel {
    position: relative;
    min-height: 70vh;
}

.ellib-frame {
    width: 100%;
    height: 70vh;
    border: 1px solid var(--line, #ccc);
    background: #fff;
    overflow: hidden;
}

html:has(.ellib-viewer),
html:has(.ellib-viewer) body.cloud-minimal {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.ellib-viewer {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    max-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #fff;
    color: #222;
    font-family: "PT Sans", "Segoe UI", sans-serif;
}

.ellib-issue-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0.8rem;
    flex-shrink: 0;
    padding: 0.45rem 0.6rem;
    background: transparent;
}

.ellib-issue-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
}

.ellib-issue-filters select {
    font: inherit;
    min-width: 8rem;
}

.ellib-viewer-notice {
    flex-shrink: 0;
    margin: 0.5rem 1rem;
}

.ellib-strip-wrap {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    padding: 0.65rem 0.4rem 0.85rem;
    overflow: visible;
}

.ellib-strip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: visible;
    min-height: 6.5rem;
    padding: 0.85rem 1.35rem 0.95rem;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ellib-strip::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.ellib-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0.35rem 0.2rem;
    background: transparent;
    cursor: pointer;
    flex: 0 0 auto;
}

.ellib-thumb img {
    display: block;
    height: 72px;
    width: auto;
    opacity: 0.5;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
    box-shadow: none;
}

.ellib-thumb.is-current img {
    opacity: 1;
    transform: scale(1.14);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.45);
}

.ellib-thumb:hover img,
.ellib-thumb:focus-visible img {
    opacity: 0.88;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ellib-thumb:hover:not(.is-current) img,
.ellib-thumb:focus-visible:not(.is-current) img {
    transform: scale(1.08);
}

.ellib-thumb.is-current:hover img,
.ellib-thumb.is-current:focus-visible img {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.48);
}

.ellib-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    width: 100%;
    padding: 0 0 0.25rem;
    margin: 0 auto;
    box-sizing: border-box;
    background: transparent;
}

.ellib-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #2f5d50;
    cursor: pointer;
    line-height: 1;
}

.ellib-icon-btn.ellib-toolbar-btn {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.85rem;
    opacity: 0.75;
}

.ellib-icon-btn.ellib-toolbar-btn:hover,
.ellib-icon-btn.ellib-toolbar-btn:focus-visible {
    opacity: 1;
    outline: none;
    box-shadow: none;
}

.ellib-icon-btn.ellib-nav {
    width: auto;
    height: auto;
    min-width: 2rem;
    min-height: 2rem;
    font-size: 2rem;
    opacity: 0.55;
}

.ellib-icon-btn.ellib-nav:hover,
.ellib-icon-btn.ellib-nav:focus-visible {
    opacity: 1;
    outline: none;
    box-shadow: none;
}

.ellib-stage {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex: 1;
    min-height: 0;
    padding: 0.15rem 2rem 0.35rem;
    box-sizing: border-box;
}

.ellib-stage-viewport {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    min-height: 0;
    text-align: center;
}

.ellib-stage-pan {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.ellib-stage-pan.is-dragging {
    cursor: grabbing;
}

.ellib-stage-pan.is-expanded {
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ellib-stage-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform-origin: center center;
    transition: transform 0.5s ease;
    object-fit: contain;
    pointer-events: none;
}

.ellib-stage-pan.is-expanded .ellib-stage-img {
    max-width: none;
    max-height: none;
}

.ellib-stage-img--no-transition {
    transition: none;
}

.ellib-fs-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.ellib-fs-modal[hidden] {
    display: none !important;
}

.ellib-fs-modal.is-open {
    display: block;
}

.ellib-fs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.ellib-fs-modal-pan {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.ellib-fs-modal-pan.is-dragging {
    cursor: grabbing;
}

.ellib-fs-modal-img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    transform-origin: center center;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.ellib-nav.ellib-turn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.ellib-turn[data-ellib-turn="-1"] {
    left: 0.35rem;
}

.ellib-turn[data-ellib-turn="1"] {
    right: 0.35rem;
}

.ellib-viewer:fullscreen,
.ellib-viewer:-webkit-full-screen {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.ellib-viewer:fullscreen .ellib-stage,
.ellib-viewer:-webkit-full-screen .ellib-stage {
    flex: 1;
    min-height: 0;
}

.ellib-viewer:fullscreen .ellib-stage-img,
.ellib-viewer:-webkit-full-screen .ellib-stage-img {
    max-height: calc(100vh - 11rem);
}

.ellib-frame:fullscreen,
.ellib-frame:-webkit-full-screen {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
