.version-page > * {
    position: relative;
    z-index: 1;
}

.version-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.version-page-head h1 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.2;
    color: #111827;
}

.version-page-head p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.version-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex: 0 0 auto;
}

.version-count,
.version-latest-badge,
.version-range {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.version-count {
    padding: 6px 12px;
    color: #1e3a8a;
    background: rgba(219, 234, 254, .9);
    border: 1px solid rgba(96, 165, 250, .38);
}

.version-range {
    padding: 5px 10px;
    color: #475569;
    background: rgba(248, 250, 252, .86);
    border: 1px solid rgba(148, 163, 184, .28);
}

.version-timeline {
    display: grid;
    gap: 0;
}

.version-period {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    margin: 4px 0 10px;
}

.version-period::before {
    content: "";
    justify-self: center;
    align-self: center;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 5px rgba(148, 163, 184, .16);
}

.version-period span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    color: #334155;
    background: rgba(226, 232, 240, .8);
    border: 1px solid rgba(148, 163, 184, .22);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.version-entry {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    padding: 2px 0 22px;
}

.version-entry::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 18px;
    bottom: -2px;
    width: 2px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .28);
}

.version-entry:last-child {
    padding-bottom: 0;
}

.version-entry:last-child::before {
    display: none;
}

.version-marker {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #e2e8f0;
    border: 5px solid rgba(255, 255, 255, .82);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
}

.version-entry.is-latest .version-marker {
    background: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .25);
}

.version-entry-body {
    min-width: 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .46);
    border: 1px solid rgba(148, 163, 184, .20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .64);
}

.version-entry.is-latest .version-entry-body {
    background: rgba(239, 246, 255, .78);
    border-color: rgba(96, 165, 250, .36);
}

.version-entry-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.version-title-stack {
    min-width: 0;
}

.version-title-stack h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    color: #111827;
    word-break: break-word;
}

.version-entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
}

.version-date,
.version-raw-date {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.version-date {
    padding: 3px 9px;
    color: #0f766e;
    background: rgba(204, 251, 241, .8);
    border: 1px solid rgba(45, 212, 191, .36);
}

.version-date.is-missing {
    color: #92400e;
    background: rgba(254, 243, 199, .88);
    border-color: rgba(251, 191, 36, .42);
}

.version-raw-date {
    padding: 3px 8px;
    color: #64748b;
    background: rgba(248, 250, 252, .74);
    border: 1px solid rgba(148, 163, 184, .24);
}

.version-latest-badge {
    padding: 5px 10px;
    color: #fff;
    background: #2563eb;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .22);
}

.version-items {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.version-items li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 28px;
}

.version-item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #334155;
    background: rgba(226, 232, 240, .88);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.version-entry.is-latest .version-item-number {
    color: #1d4ed8;
    background: rgba(191, 219, 254, .95);
}

.version-item-text,
.version-notes {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.65;
}

.version-notes {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 3px solid rgba(96, 165, 250, .55);
    border-radius: 8px;
    background: rgba(248, 250, 252, .64);
}

.version-notes p {
    margin: 0;
}

.version-empty {
    padding: 26px 18px;
    border-radius: 14px;
    color: #64748b;
    text-align: center;
    background: rgba(255, 255, 255, .46);
}

.version-source-notes {
    display: grid;
    gap: 6px;
    margin-top: 22px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #475569;
    background: rgba(248, 250, 252, .68);
    border: 1px solid rgba(148, 163, 184, .22);
    font-size: 13px;
    line-height: 1.6;
}

.version-source-notes p {
    margin: 0;
}
