body.ojs-galley-view-page {
    margin: 0;
    background: #0f172a;
    color: #e2e8f0;
    font-family: "Segoe UI", Arial, sans-serif;
}

.header_view {
    align-items: center;
    background: #020617;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 64px;
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header_view .return,
.header_view .download,
.header_view .title {
    color: inherit;
    text-decoration: none;
}

.header_view .return {
    background: rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    display: inline-flex;
    height: 2.5rem;
    position: relative;
    transition: background 0.2s ease;
    width: 2.5rem;
}

.header_view .return:hover,
.header_view .download:hover {
    background: rgba(148, 163, 184, 0.28);
}

.header_view .return::before {
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
    height: 0.65rem;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-35%, -50%) rotate(45deg);
    width: 0.65rem;
}

.header_view .title {
    align-items: center;
    display: inline-flex;
    flex: 1 1 auto;
    font-size: 0.95rem;
    font-weight: 700;
    gap: 0.75rem;
    line-height: 1.4;
    min-width: 0;
}

.header_view .title .vnna-galley-journal,
.header_view .title .tmu-galley-journal {
    color: #fca5a5;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.header_view .download {
    align-items: center;
    background: #0f766e;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.galley_view {
    height: calc(100vh - 65px);
    width: 100%;
}

.galley_view iframe {
    background: #fff;
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.pkp_screen_reader {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

@media (max-width: 767px) {
    .header_view {
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .header_view .title {
        font-size: 0.85rem;
    }

    .header_view .title .vnna-galley-journal,
    .header_view .title .tmu-galley-journal {
        display: none;
    }

    .header_view .download .label {
        display: none;
    }
}
