.party-friend-shell {
    width: 100%;
    padding: 10px 12px 16px;
    box-sizing: border-box;
}

.party-friend-title {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 10px;
    color: #d8d8df;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.party-friend-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.party-friend-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 40px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 6px;
    color: #d8d8df;
    background: rgba(255, 255, 255, 0.07);
    font-size: 15px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color .2s ease, color .2s ease;
}

.party-friend-link:hover {
    color: #ffffff;
    background: #ff647f;
}

@media screen and (max-width: 768px) {
    .party-friend-shell {
        padding: 8px 8px 14px;
    }

    .party-friend-title {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .party-friend-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .party-friend-link {
        height: 36px;
        padding: 0 4px;
        border-radius: 5px;
        font-size: 14px;
    }
}


.party-subbar-shell {
    width: 100%;
    padding: 10px 12px 16px;
    box-sizing: border-box;
}

.party-subbar-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.party-subbar-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 40px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 6px;
    color: #d8d8df;
    background: rgba(255, 255, 255, 0.07);
    font-size: 15px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color .2s ease, color .2s ease;
}

.party-subbar-grid-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.party-subbar-grid-item.is-active {
    color: #ffffff;
    background: #ff647f;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .party-subbar-shell {
        padding: 8px 8px 14px;
    }

    .party-subbar-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .party-subbar-grid-item {
        height: 36px;
        padding: 0 4px;
        border-radius: 5px;
        font-size: 14px;
    }
}

.topline-actions {
    overflow: hidden;
}

.topline-fastnav {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
}

.topline-fastnav-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #eceff4;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.topline-fastnav-link:hover {
    color: #ff647f;
}

.topline-fastnav[data-label-mode="medium"] {
    gap: 8px;
}

.topline-fastnav[data-label-mode="short"] {
    gap: 6px;
}

@media screen and (max-width: 380px) {
    .topline-actions {
        gap: 8px;
    }

    .topline-fastnav {
        gap: 5px;
    }

    .topline-fastnav[data-label-mode="medium"] {
        gap: 5px;
    }

    .topline-fastnav[data-label-mode="short"] {
        gap: 5px;
    }

    .topline-fastnav-link {
        font-size: 13px;
    }
}

.party-mainbar-shell {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
}

.party-mainbar-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.party-mainbar-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 40px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 6px;
    color: #d8d8df;
    background: rgba(255, 255, 255, 0.07);
    font-size: 15px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color .2s ease, color .2s ease;
}

.party-mainbar-grid-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.party-mainbar-grid-item.is-active {
    color: #ffffff;
    background: #ff647f;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .party-mainbar-shell {
        padding: 10px 8px;
    }

    .party-mainbar-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .party-mainbar-grid-item {
        height: 36px;
        padding: 0 4px;
        border-radius: 5px;
        font-size: 14px;
    }
}

.system-prompt-page{background:#F9FAFD;color:#818181;}
