.repository-viewer {
    display: flex;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #e8edf2;
}

.repository-sidebar {
    box-sizing: border-box;
    flex: 0 0 300px;
    padding: 32px 24px;
    overflow-y: auto;
    border-right: 1px solid #dce3e9;
}

.repository-logo img {
    max-width: 100%;
}

.repository-title,
.repository-description,
.repository-filename {
    overflow-wrap: anywhere;
}

.repository-metadata {
    font-size: 14px;
}

.repository-metadata dt {
    color: #243d57;
    font-weight: 600;
}

.repository-metadata dd {
    margin-top: 4px;
}

.repository-preview {
    flex: 1;
    min-width: 0;
    min-height: 0;
}

.repository-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #e8edf2;
}

.repository-unavailable {
    height: 100%;
}

.repository-info.uk-offcanvas-bar {
    width: 320px;
    max-width: 90vw;
    padding: 48px 24px 24px;
    background: #fff;
    color: #536575;
}

.repository-info .repository-title,
.repository-info .uk-offcanvas-close {
    color: #243d57;
}

.repository-info .uk-text-meta {
    color: #536575;
}

.repository-info hr {
    border-top-color: #dce3e9;
}

.repository-info .uk-button-primary {
    background: #4c75a0;
    color: #fff;
}

.repository-info .uk-button-primary:hover {
    background: #243d57;
    color: #fff;
}

.repository-info .uk-button-default {
    color: #243d57;
    border-color: #dce3e9;
}

.repository-info .uk-button-default:hover {
    background: #e8edf2;
}

@media (max-width: 959px) {
    .repository-viewer {
        flex-direction: column;
    }

    .repository-mobile-header {
        box-sizing: border-box;
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 12px;
        min-height: 72px;
        padding: 10px 16px;
        padding-top: max(10px, env(safe-area-inset-top));
        border-bottom: 3px solid #00b0e1;
    }

    .repository-mobile-logo {
        flex: 0 0 100px;
    }

    .repository-mobile-title {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #243d57;
        font-size: 14px;
        font-weight: 600;
    }

    .repository-info-button {
        flex-shrink: 0;
        padding: 0 10px;
    }
}
