/* Compact profile utility launcher, aligned with mobile app icon grids. */
#tab-profile .profile-section-utilities {
    padding-inline: clamp(8px, 1vw, 16px) !important;
    margin-bottom: 18px !important;
}

#tab-profile .profile-section-utilities .profile-section-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
    color: #111827 !important;
    font-size: 1.12rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

#tab-profile .profile-section-utilities .profile-section-title i {
    color: #f15a2b !important;
    font-size: 1.05em !important;
}

body #tab-profile .profile-container .profile-section-utilities .profile-utilities-grid {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 112px)) !important;
    grid-auto-rows: max-content !important;
    align-items: start !important;
    align-content: start !important;
    justify-content: start !important;
    gap: 18px 16px !important;
}

#tab-profile .profile-shortcut-btn {
    --utility-icon-color: #4b5563;
    width: 100% !important;
    max-width: 112px !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 102px !important;
    align-self: start !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    padding: 4px 3px !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111827 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: none !important;
    -webkit-tap-highlight-color: transparent;
}

#tab-profile .profile-shortcut-btn[hidden],
#tab-profile .profile-shortcut-btn[data-rbac-hidden="true"],
#tab-profile .profile-shortcut-btn.is-rbac-hidden {
    display: none !important;
}

#tab-profile .profile-shortcut-btn > i:not(.profile-shortcut-chevron) {
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: var(--utility-icon-color) !important;
    font-size: 1.65rem !important;
    line-height: 1 !important;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.11) !important;
    transition: transform 160ms ease, box-shadow 160ms ease !important;
}

#tab-profile .profile-shortcut-btn > span {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 2.5em !important;
    flex: 0 0 auto !important;
    display: block !important;
    overflow: visible !important;
    color: #111827 !important;
    font-family: inherit !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    line-height: 1.24 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

#tab-profile .profile-shortcut-btn::after,
#tab-profile .profile-shortcut-chevron {
    display: none !important;
}

#tab-profile .profile-shortcut-btn--leaderboard {
    --utility-icon-color: #f59e0b;
}

#tab-profile .profile-shortcut-btn--training {
    --utility-icon-color: #7c3aed;
}

#tab-profile .profile-shortcut-btn--attendance {
    --utility-icon-color: #ef4444;
}

#tab-profile .profile-shortcut-btn--leave {
    --utility-icon-color: #059669;
}

#tab-profile .profile-shortcut-btn--notebook {
    --utility-icon-color: #00a889;
}

#tab-profile .profile-shortcut-btn--members {
    --utility-icon-color: #2563eb;
}

#tab-profile .profile-shortcut-btn--chat {
    --utility-icon-color: #0f8f78;
    position: relative !important;
}

#tab-profile .profile-shortcut-badge {
    position: absolute !important;
    top: 0 !important;
    left: calc(50% + 15px) !important;
    z-index: 2 !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.66rem !important;
    font-style: normal !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

#tab-profile .profile-shortcut-badge[hidden] {
    display: none !important;
}

#tab-profile .profile-shortcut-btn--admin {
    --utility-icon-color: #315bdc;
}

#tab-profile .profile-shortcut-btn:hover,
#tab-profile .profile-shortcut-btn:focus-visible {
    transform: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#tab-profile .profile-shortcut-btn:hover > i:not(.profile-shortcut-chevron),
#tab-profile .profile-shortcut-btn:focus-visible > i:not(.profile-shortcut-chevron) {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16) !important;
}

#tab-profile .profile-shortcut-btn:focus-visible > i:not(.profile-shortcut-chevron) {
    outline: 3px solid rgba(59, 130, 246, 0.3) !important;
    outline-offset: 3px !important;
}

@media (max-width: 1180px) {
    body #tab-profile .profile-container .profile-section-utilities .profile-utilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(92px, 112px)) !important;
        gap: 16px 14px !important;
    }
}

@media (max-width: 640px) {
    #tab-profile .profile-section-utilities {
        padding-inline: 8px !important;
    }

    #tab-profile .profile-section-utilities .profile-section-title {
        margin-bottom: 11px !important;
        font-size: 1rem !important;
    }

    body #tab-profile .profile-container .profile-section-utilities .profile-utilities-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px 8px !important;
    }

    #tab-profile .profile-shortcut-btn {
        max-width: none !important;
        min-height: 96px !important;
        gap: 7px !important;
        padding-inline: 1px !important;
    }

    #tab-profile .profile-shortcut-btn > i:not(.profile-shortcut-chevron) {
        width: 52px !important;
        height: 52px !important;
        flex-basis: 52px !important;
        border-radius: 15px !important;
        font-size: 1.45rem !important;
    }

    #tab-profile .profile-shortcut-btn > span {
        min-height: 3.6em !important;
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 359px) {
    body #tab-profile .profile-container .profile-section-utilities .profile-utilities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap-inline: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #tab-profile .profile-shortcut-btn > i:not(.profile-shortcut-chevron) {
        transition: none !important;
    }
}
