.release-notes-page {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 70px;
    color: #10213f;
}

body:not([data-dashboard-ui="modern"]) .release-notes-page {
    padding-top: 64px;
}

.release-notes-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 12%, rgba(96, 165, 250, 0.28), transparent 19rem),
        linear-gradient(135deg, #0b1831 0%, #123d72 52%, #1d4ed8 100%);
    box-shadow: 0 26px 64px rgba(10, 24, 49, 0.2);
}

.release-notes-hero :is(h1, p, span, i) {
    color: inherit;
}

.release-notes-hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.release-notes-eyebrow,
.release-current-version,
.release-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
}

.release-notes-eyebrow {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: rgba(255, 255, 255, 0.09);
    font-size: 0.82rem;
    font-weight: 850;
}

.release-notes-hero h1 {
    margin: 18px 0 10px;
    color: #fff !important;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 950;
    letter-spacing: -0.035em;
}

.release-notes-hero p {
    max-width: 58ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 1rem;
    line-height: 2;
}

.release-notes-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.release-current-version,
.release-back-link {
    min-height: 44px;
    padding: 8px 15px;
    font-size: 0.86rem;
    font-weight: 850;
}

.release-current-version {
    color: #10213f !important;
    background: #fff;
}

.release-current-version bdi {
    color: #1d4ed8;
}

.release-back-link,
.release-back-link:hover {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.release-back-link:hover {
    background: rgba(255, 255, 255, 0.14);
}

.release-notes-hero__mark {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    width: clamp(90px, 13vw, 140px);
    height: clamp(90px, 13vw, 140px);
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: rotate(-6deg);
}

.release-notes-hero__mark i {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.release-timeline {
    position: relative;
    margin-top: 34px;
    padding-right: 34px;
}

.release-timeline::before {
    position: absolute;
    top: 12px;
    right: 10px;
    bottom: 12px;
    width: 2px;
    content: "";
    background: #d7e3f2;
}

.release-entry {
    position: relative;
    margin-bottom: 18px;
}

.release-entry__dot {
    position: absolute;
    z-index: 2;
    top: 27px;
    right: -31px;
    width: 16px;
    height: 16px;
    border: 4px solid #f3f7fc;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 2px #cbd5e1;
}

.release-entry.is-current .release-entry__dot {
    background: #2563eb;
    box-shadow: 0 0 0 2px #60a5fa, 0 0 0 7px rgba(37, 99, 235, 0.1);
}

.release-card {
    overflow: hidden;
    border: 1px solid #dfe8f4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 33, 63, 0.07);
}

.release-entry.is-current .release-card {
    border-color: rgba(37, 99, 235, 0.28);
}

.release-card__summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    cursor: pointer;
    list-style: none;
}

.release-card__summary::-webkit-details-marker {
    display: none;
}

.release-card__summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: -3px;
}

.release-version-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 62px;
    padding: 8px 13px;
    border-radius: 14px;
    color: #1d4ed8;
    background: #edf5ff;
    font-weight: 900;
}

.release-version-badge span {
    margin-top: 2px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 750;
}

.release-entry.is-current .release-version-badge {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.release-entry.is-current .release-version-badge span {
    color: rgba(255, 255, 255, 0.82);
}

.release-card__heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.release-card__heading strong {
    color: #10213f;
    font-size: 1.08rem;
    font-weight: 900;
}

.release-card__heading small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #71809b;
}

.release-card__chevron {
    color: #64748b;
    transition: transform 180ms ease;
}

.release-card[open] .release-card__chevron {
    transform: rotate(180deg);
}

.release-card__body {
    padding: 0 22px 24px;
    border-top: 1px solid #edf1f7;
}

.release-summary {
    margin: 0 -22px 22px;
    padding: 18px 22px;
    color: #52627e;
    background: #f8fbff;
    line-height: 1.9;
}

.release-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.release-section {
    padding: 18px;
    border: 1px solid #e4ebf4;
    border-radius: 16px;
    background: #fff;
}

.release-section h2 {
    margin: 0 0 12px;
    color: #1d4ed8 !important;
    font-size: 0.94rem;
    font-weight: 900;
}

.release-section ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.release-section li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 8px;
    color: #455572;
    font-size: 0.88rem;
    line-height: 1.85;
}

.release-section li i {
    display: grid;
    width: 20px;
    height: 20px;
    margin-top: 5px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #2563eb;
    font-size: 0.72rem;
}

[data-bs-theme="dark"] .release-notes-page {
    color: #edf4ff;
}

[data-bs-theme="dark"] .release-timeline::before {
    background: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .release-entry__dot {
    border-color: #081329;
}

[data-bs-theme="dark"] .release-card,
[data-bs-theme="dark"] .release-section {
    border-color: rgba(255, 255, 255, 0.09);
    background: #0f1d36;
}

[data-bs-theme="dark"] .release-card__heading strong {
    color: #edf4ff;
}

[data-bs-theme="dark"] .release-card__body {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .release-summary {
    color: #cbd5e1;
    background: #172642;
}

[data-bs-theme="dark"] .release-section li {
    color: #cbd5e1;
}

@media (max-width: 767.98px) {
    .release-notes-page {
        width: min(100% - 20px, 100%);
        padding: 20px 0 42px;
    }

    .release-notes-hero {
        padding: 27px 21px;
        border-radius: 22px;
    }

    .release-notes-hero__mark {
        display: none;
    }

    .release-timeline {
        padding-right: 22px;
    }

    .release-timeline::before {
        right: 5px;
    }

    .release-entry__dot {
        right: -24px;
    }

    .release-card__summary {
        grid-template-columns: auto 1fr;
        gap: 12px;
        padding: 16px;
    }

    .release-card__chevron {
        display: none;
    }

    .release-version-badge {
        min-width: 80px;
    }

    .release-card__body {
        padding: 0 16px 18px;
    }

    .release-summary {
        margin-inline: -16px;
        padding-inline: 16px;
    }

    .release-sections {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .release-card__chevron {
        transition: none;
    }
}
