.release-notes-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(760px, calc(100vw - 32px));
    max-width: none;
    max-height: min(88vh, 860px);
    padding: 0;
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 15px;
    background: #f7f8fa;
    color: #29323b;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.release-notes-modal::backdrop {
    background: rgba(17, 22, 28, 0.68);
    backdrop-filter: blur(2px);
}

.release-notes-layout {
    display: flex;
    max-height: min(88vh, 860px);
    flex-direction: column;
}

.release-notes-header {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
    padding: 20px 58px 18px 22px;
    border-bottom: 1px solid #e6e8eb;
    background: #fff;
}

.release-notes-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    object-fit: contain;
}

.release-notes-brand {
    display: grid;
    gap: 3px;
}

.release-notes-brand strong {
    color: #252d35;
    font-size: 0.97rem;
    line-height: 1.35;
}

.release-notes-brand span {
    color: #7a838d;
    font-size: 0.8rem;
}

.release-notes-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #e0e4e8;
    border-radius: 50%;
    background: #fff;
    color: #4e5862;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.release-notes-close:hover {
    border-color: #b9272d;
    color: #a51f25;
}

.release-notes-content {
    min-height: 0;
    overflow-y: auto;
    padding: 22px;
    overscroll-behavior: contain;
}

.release-notes-preview {
    overflow: auto;
    max-height: min(44vh, 390px);
    padding: clamp(18px, 4vw, 26px);
    border: 1px solid #e2e5e9;
    border-top: 3px solid #b9272d;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(35, 44, 54, 0.045);
    overscroll-behavior: contain;
}

.release-notes-kicker {
    margin: 0 0 8px;
    color: #a82329;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-align: left;
    text-transform: uppercase;
}

.release-notes-preview h2 {
    margin: 0 0 20px;
    color: #242d36;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 740;
    line-height: 1.35;
    text-align: left;
}

.release-notes-preview h2::after {
    display: none;
}


.release-notes-body {
    color: #515c67;
    font-size: 0.93rem;
    line-height: 1.75;
    white-space: pre-line;
}

.release-notes-date {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 20px 0 0;
    padding-top: 13px;
    border-top: 1px solid #eceff1;
    color: #7a838d;
    font-size: 0.8rem;
    text-align: left;
}

.release-notes-archive {
    margin-top: 22px;
}

.release-notes-archive > h3 {
    margin: 0 0 10px;
    color: #303943;
    font-size: 0.98rem;
}

.release-notes-archive details {
    margin-top: 8px;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    background: #fff;
}

.release-notes-archive summary {
    padding: 12px 14px;
    color: #38434e;
    font-size: 0.88rem;
    font-weight: 650;
    cursor: pointer;
}

.release-notes-archive summary::marker {
    color: #aa252a;
}

.release-notes-archive details[open] summary {
    border-bottom: 1px solid #eceff1;
}

.release-notes-archive-entry {
    overflow-y: auto;
    max-height: 220px;
    padding: 14px;
    color: #56616c;
    font-size: 0.87rem;
    line-height: 1.7;
    white-space: pre-line;
}

.release-notes-archive-entry h4 {
    margin: 0 0 8px;
    color: #343e48;
    font-size: 0.94rem;
}

.release-notes-archive-entry p {
    margin: 0;
}

.release-admin-form,
.release-admin-list {
    margin-top: 24px;
}

.release-admin-list > h4 {
    margin-bottom: 12px;
}

@media (max-width: 560px) {
    .release-notes-modal {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 12px;
    }

    .release-notes-layout {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
    }

    .release-notes-header {
        padding: 15px 52px 14px 15px;
    }

    .release-notes-logo {
        width: 44px;
        height: 44px;
    }

    .release-notes-brand strong {
        font-size: 0.84rem;
    }

    .release-notes-brand span {
        font-size: 0.74rem;
    }

    .release-notes-close {
        top: 13px;
        right: 12px;
    }

    .release-notes-content {
        padding: 14px;
    }

    .release-notes-preview {
        max-height: 48vh;
    }
}
