.viewer-key {
    margin-bottom: 4px;
    color: var(--bs-secondary-color);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-title {
    margin: 0 0 14px;
    color: var(--bs-body-color);
    font-size: 16px;
    font-weight: 800;
}

.viewer-description {
    min-height: 72px;
    color: var(--bs-body-color);
    line-height: 1.6;
    white-space: pre-wrap;
}

.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.version-title {
    display: block;
    width: 100%;
    margin: -4px -6px 0;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--bs-body-color);
    font-size: 28px;
    font-weight: 800;
}

.version-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.version-panel {
    margin-bottom: 28px;
}

.version-inline-field {
    min-height: 34px;
    padding: 5px 7px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
}

.version-title:hover,
.version-title:focus,
.version-inline-field:hover,
.version-inline-field:focus {
    border-color: var(--bs-border-color);
    background: var(--bs-secondary-bg);
    outline: 0;
}

.version-title.is-readonly:hover,
.version-title.is-readonly:focus,
.version-inline-field.is-readonly:hover,
.version-inline-field.is-readonly:focus {
    border-color: transparent;
    background: transparent;
}

.version-inline-field.is-empty {
    color: var(--bs-secondary-color);
    font-style: italic;
}

.version-inline-field.is-saving {
    opacity: 0.65;
    pointer-events: none;
}

.version-inline-form {
    display: grid;
    gap: 8px;
}

.version-inline-actions {
    display: flex;
    gap: 8px;
}

.version-inline-actions .btn {
    display: inline-grid;
    width: 36px;
    height: 32px;
    place-items: center;
    padding: 0;
}

.version-inline-input {
    width: 100%;
}

.meta-list {
    display: grid;
    gap: 12px;
}

.meta-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

.meta-label {
    color: var(--bs-secondary-color);
    font-weight: 700;
}

.meta-value {
    min-width: 0;
    color: var(--bs-body-color);
    font-weight: 700;
}

@media (max-width: 700px) {
    .version-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .version-detail-grid {
        grid-template-columns: 1fr;
    }

    .meta-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}
