/* =============================================================================
   Board panel — Support + user chip polish (additive; does not alter old rules)
   ============================================================================= */

.gh-platform.gh-board-panel .main-header .navbar-custom-menu,
.gh-platform.gh-board-panel .main-header .navbar-right {
    margin-top: 0 !important;
}

.gh-platform.gh-board-panel .gh-top-navbar-actions {
    display: flex !important;
    align-items: center !important;
    height: 58px !important;
    margin-top: 0 !important;
}

.gh-platform.gh-board-panel .gh-top-navbar-actions > .navbar-nav {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    height: 100% !important;
    margin: 0 !important;
}

.gh-platform.gh-board-panel .gh-top-navbar-actions > .navbar-nav > li.gh-board-support-link,
.gh-platform.gh-board-panel .gh-top-navbar-actions > .navbar-nav > li.gh-user-menu {
    display: flex !important;
    align-items: center !important;
    float: none !important;
    height: auto !important;
}

.gh-platform.gh-board-panel .main-header .navbar .nav > li.gh-board-support-link > a.gh-nav-pill,
.gh-platform.gh-board-panel .main-header .navbar .nav > li.gh-board-support-link > a.gh-board-header-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 14px 0 8px !important;
    margin: 0 !important;
    line-height: 1 !important;
    gap: 8px !important;
    vertical-align: middle;
    box-sizing: border-box !important;
}

.gh-platform.gh-board-panel .gh-board-header-pill .gh-nav-pill-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex-shrink: 0;
}

.gh-platform.gh-board-panel .gh-board-header-pill .gh-nav-pill-icon > i {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 14px !important;
    width: auto !important;
    height: auto !important;
    position: relative;
    top: 0;
}

.gh-platform.gh-board-panel .gh-board-header-pill .gh-nav-pill-label {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: inherit !important;
    position: relative;
    top: 0;
}

.gh-platform.gh-board-panel .main-header .navbar .nav > li.gh-user-menu > a.gh-user-toggle {
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.gh-platform.gh-board-panel .gh-board-header-chip.gh-user-chip {
    display: inline-flex !important;
    align-items: center !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    gap: 10px;
    padding: 0 12px 0 4px !important;
    max-width: 260px;
    box-sizing: border-box !important;
}

.gh-platform.gh-board-panel .gh-board-header-chip .gh-user-avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
}

.gh-platform.gh-board-panel .gh-board-header-chip .gh-user-chip-text {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-width: 150px;
    gap: 1px;
    line-height: 1.15;
}

.gh-platform.gh-board-panel .gh-board-header-chip .gh-user-chip-text strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
}

.gh-platform.gh-board-panel .gh-board-header-chip .gh-user-chip-text small {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gh-platform.gh-board-panel .gh-board-header-chip .gh-user-chevron {
    font-size: 10px;
    opacity: 0.75;
    flex-shrink: 0;
    line-height: 1;
}

/* Broken/missing photo: keep circle clean while fallback initials apply */
.gh-platform.gh-board-panel .gh-user-avatar.gh-user-avatar-img img[src=""],
.gh-platform.gh-board-panel .gh-user-avatar.gh-user-avatar-img img:not([src]) {
    display: none;
}

@media (max-width: 1365px) {
    .gh-platform.gh-board-panel .gh-board-header-pill .gh-nav-pill-label {
        font-size: 12px !important;
    }

    .gh-platform.gh-board-panel .gh-board-header-chip .gh-user-chip-text strong {
        font-size: 12px;
    }

    .gh-platform.gh-board-panel .gh-board-header-chip .gh-user-chip-text small {
        font-size: 10px;
    }

    .gh-platform.gh-board-panel .gh-board-header-chip.gh-user-chip {
        max-width: 220px;
    }

    .gh-platform.gh-board-panel .gh-board-header-chip .gh-user-chip-text {
        max-width: 120px;
    }
}

@media (max-width: 767px) {
    .gh-platform.gh-board-panel .gh-top-navbar-actions {
        padding-right: 12px !important;
    }

    .gh-platform.gh-board-panel .gh-top-navbar-actions > .navbar-nav {
        gap: 8px !important;
    }

    .gh-platform.gh-board-panel .gh-board-header-chip.gh-user-chip {
        padding: 0 8px 0 4px !important;
        max-width: none;
    }
}
