/* GHPHouse v2.12.1 compact profile tabs and fixed scroll viewport. */
.profile-tabs {
    gap: 6px !important;
    padding-bottom: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track) !important;
    -webkit-overflow-scrolling: touch;
}

.profile-tabs::-webkit-scrollbar {
    display: block !important;
    width: 8px;
    height: 8px;
}

.profile-tabs::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

.profile-tabs::-webkit-scrollbar-thumb {
    border: 2px solid var(--scrollbar-track);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--scrollbar-thumb-hover), var(--scrollbar-thumb));
}

.profile-tabs::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--scrollbar-thumb-active), var(--scrollbar-thumb-hover));
}

.profile-tab {
    min-height: 52px !important;
    padding-inline: 14px !important;
    gap: 7px !important;
    border-radius: 14px 14px 0 0 !important;
    font-size: .72rem !important;
    letter-spacing: .045em !important;
}

.profile-tab-badge {
    min-width: 20px !important;
    height: 20px !important;
    padding-inline: 6px !important;
    font-size: .62rem !important;
}

.profile-tab.active::after {
    left: 12px !important;
    right: 12px !important;
    height: 4px !important;
}

.profile-tab-content {
    width: 100%;
    height: 680px;
    min-height: 0;
    padding: 4px 10px 14px 2px;
    overflow: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scroll-padding: 16px;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.profile-tab-content::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.profile-tab-content::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

.profile-tab-content::-webkit-scrollbar-thumb {
    border: 2px solid var(--scrollbar-track);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--scrollbar-thumb-hover), var(--scrollbar-thumb));
}

.profile-tab-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--scrollbar-thumb-active), var(--scrollbar-thumb-hover));
}

.profile-tab-content::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

.profile-tab-content > .profile-panel {
    min-width: 0;
    padding-bottom: 8px;
}

.profile-tab-content:focus-visible {
    outline: 2px solid rgba(255, 74, 112, .72);
    outline-offset: 3px;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .profile-tab-content {
        height: 600px;
    }
}

@media (max-width: 600px) {
    .profile-tabs {
        gap: 4px !important;
        padding-bottom: 12px !important;
    }

    .profile-tab {
        min-height: 48px !important;
        padding-inline: 12px !important;
        gap: 6px !important;
        font-size: .68rem !important;
        letter-spacing: .035em !important;
    }

    .profile-tab-badge {
        min-width: 19px !important;
        height: 19px !important;
        font-size: .58rem !important;
    }

    .profile-tab-content {
        height: 540px;
        padding-right: 7px;
        scrollbar-gutter: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-tab-content {
        scroll-behavior: auto;
    }
}
