.rail-release-link {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-top: auto;
    padding: 11px 5px;
    border-top: 1px solid rgb(255 255 255 / 12%);
    color: rgb(255 255 255 / 86%);
    text-align: center;
    text-decoration: none;
}

.rail-release-link:hover,
.rail-release-link:focus-visible,
.rail-release-link.is-active {
    color: #fff;
    background: rgb(255 255 255 / 10%);
}

.rail-release-link .rail-icon {
    width: 25px;
    height: 25px;
}

.rail-release-link .rail-label {
    font-size: 10px;
    font-weight: 750;
}

.rail-release-link + .rail-footer {
    margin-top: 0;
    padding-top: 6px;
}

.release-note-heading {
    align-items: flex-start;
}

.release-current-build,
.release-version {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    color: #17465c;
    background: #e4f1f6;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.84rem;
}

.release-note-editor {
    margin-bottom: 24px;
}

.release-note-editor > summary,
.release-inline-editor > summary {
    cursor: pointer;
    font-weight: 800;
}

.release-note-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.release-note-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
    gap: 16px;
}

.release-publish-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.release-timeline {
    position: relative;
    display: grid;
    gap: 18px;
    padding-left: 30px;
}

.release-timeline::before {
    position: absolute;
    inset: 0 auto 0 8px;
    width: 3px;
    border-radius: 99px;
    background: #d7e4ea;
    content: '';
}

.release-card {
    position: relative;
    margin: 0;
}

.release-card-marker {
    position: absolute;
    top: 28px;
    left: -31px;
    width: 17px;
    height: 17px;
    border: 4px solid #f5f7f9;
    border-radius: 50%;
    background: #1680a8;
    box-shadow: 0 0 0 2px #1680a8;
}

.release-card--patch .release-card-marker { background: #e85a32; box-shadow: 0 0 0 2px #e85a32; }
.release-card--security .release-card-marker { background: #ba2f3b; box-shadow: 0 0 0 2px #ba2f3b; }
.release-card--maintenance .release-card-marker { background: #687586; box-shadow: 0 0 0 2px #687586; }
.release-card.is-draft { opacity: 0.72; }

.release-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.release-card-header h2 {
    margin: 8px 0 7px;
}

.release-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--shell-muted);
    font-size: 0.86rem;
}

.release-category,
.release-draft {
    padding: 4px 8px;
    border-radius: 999px;
    color: #0d5674;
    background: #e5f2f7;
    font-weight: 800;
}

.release-draft {
    color: #744e09;
    background: #fff0bf;
}

.release-description {
    margin-top: 20px;
    color: #435363;
    line-height: 1.7;
}

.release-inline-editor {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #dce4e8;
}

.release-inline-editor > form:last-child {
    margin-top: 12px;
}

@media (max-width: 760px) {
    .release-note-form-grid { grid-template-columns: 1fr; }
    .release-timeline { padding-left: 23px; }
    .release-card-marker { left: -24px; }
}

[data-theme='dark'] .release-current-build,
[data-theme='dark'] .release-version {
    color: #c8eafa;
    background: #173e50;
}

[data-theme='dark'] .release-description { color: #c0ccd6; }
[data-theme='dark'] .release-timeline::before { background: #355263; }
[data-theme='dark'] .release-card-marker { border-color: #14232c; }
