.team-account-list-panel .section-heading-row p {
    max-width: 680px;
    margin: 7px 0 0;
    color: #77726d;
    font-size: 13px;
    line-height: 1.45;
}

.team-role-guide-list article {
    position: relative;
    padding-left: 18px;
}

.team-role-guide-list article::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    bottom: 17px;
    width: 4px;
    border-radius: 4px;
    background: var(--team-role-accent, #77726d);
    box-shadow: 0 0 20px color-mix(in srgb, var(--team-role-accent, #77726d) 36%, transparent);
}

.role-admin { --team-role-accent: #ff004f; --team-role-soft: rgba(255, 0, 79, .10); }
.role-fitness { --team-role-accent: #9c5cff; --team-role-soft: rgba(156, 92, 255, .12); }
.role-reception { --team-role-accent: #00a9c2; --team-role-soft: rgba(0, 169, 194, .12); }
.role-trainer { --team-role-accent: #1aa870; --team-role-soft: rgba(26, 168, 112, .12); }
.role-sales { --team-role-accent: #ff6a3d; --team-role-soft: rgba(255, 106, 61, .12); }
.role-neutral { --team-role-accent: #77726d; --team-role-soft: rgba(119, 114, 109, .10); }

.status-badge.role-admin,
.status-badge.role-fitness,
.status-badge.role-reception,
.status-badge.role-trainer,
.status-badge.role-sales,
.status-badge.role-neutral {
    border: 1px solid color-mix(in srgb, var(--team-role-accent) 34%, transparent);
    color: color-mix(in srgb, var(--team-role-accent) 78%, #0b0b0d);
    background: var(--team-role-soft);
    font-family: "Barlow", sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .055em;
}

.team-account-row {
    position: relative;
    grid-template-columns: 44px minmax(190px, 1.05fr) minmax(330px, 1.35fr) minmax(120px, .55fr) minmax(150px, auto);
    padding-left: 14px;
}

.team-account-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    border-radius: 4px;
    background: var(--team-role-accent);
}

.team-account-row .avatar {
    border: 1px solid color-mix(in srgb, var(--team-role-accent) 44%, transparent);
    color: #fff;
    background:
        radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--team-role-accent) 42%, transparent), transparent 42%),
        #0b0b0d;
}

.team-account-role-cell {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.team-account-role-cell > .status-badge {
    width: max-content;
}

.team-role-editor {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto;
    gap: 7px;
    align-items: center;
}

.team-role-select {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 34px 8px 10px;
    border: 1px solid rgba(11, 11, 13, .14);
    border-radius: 8px;
    outline: none;
    color: #0b0b0d;
    background: #fff;
    font-family: "Barlow", sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.team-role-select:focus {
    border-color: var(--team-role-accent);
    box-shadow: 0 0 0 4px var(--team-role-soft);
}

.team-role-editor button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--team-role-accent);
    border-radius: 8px;
    color: #fff;
    background: var(--team-role-accent);
    font-family: "Barlow", sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .055em;
    cursor: pointer;
    transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}

.team-role-editor button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px var(--team-role-soft);
}

.team-role-editor button:disabled {
    cursor: default;
    opacity: .34;
}

.team-account-actions {
    display: flex;
    justify-content: flex-end;
}

.team-account-actions .button {
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .team-account-row {
        grid-template-columns: 44px minmax(180px, 1fr) minmax(300px, 1.2fr);
    }

    .team-account-state {
        grid-column: 2;
    }

    .team-account-actions {
        grid-column: 3;
        justify-content: stretch;
    }

    .team-account-actions .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 760px) {
    .team-account-row {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 18px 0 18px 13px;
    }

    .team-account-role-cell,
    .team-account-state,
    .team-account-actions {
        grid-column: 2;
    }

    .team-role-editor {
        grid-template-columns: 1fr;
    }

    .team-role-editor button,
    .team-account-actions .button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-role-editor button {
        transition: none;
    }
}
