.h4f-r2 .h4f-r2-top--download {
    grid-template-columns: 52px minmax(0, 1fr) 44px 52px;
    gap: 8px;
}

.h4f-r2-top .h4f-chapter-download {
    margin: 0;
}

.h4f-chapter-download .h4f-r2-icon {
    width: 44px;
    height: 44px;
    font: 700 25px/1 system-ui, sans-serif;
    cursor: pointer;
}

.h4f-chapter-download {
    position: relative;
}

.h4f-download-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: -48px;
    width: min(265px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: #111019;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

.h4f-download-panel[hidden] {
    display: none;
}

.h4f-download-panel p {
    margin: 0;
    font-size: 14px;
}

.h4f-download-links {
    display: flex;
    gap: 8px;
}

.h4f-download-links a {
    margin-top: 10px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.h4f-download-links a:first-child {
    background: var(--accent, #5c37a5);
}
